pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Allow overriding default of BUILD_TARGET via rust.BUILD_TARGET.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sun Apr 11 13:10:44 2021 +0200
Changeset: 5b2d3051eee0d8aaa6d3968053af661792dd0621
Modified Files:
rust/Makefile
Log Message:
Allow overriding default of BUILD_TARGET via rust.BUILD_TARGET.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5b2d3051eee0d8aaa6d3968053af661792dd0621
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diffs:
diff --git a/rust/Makefile b/rust/Makefile
index e097c269f2..a1cde654d7 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -48,11 +48,15 @@ CONFIGURE_ARGS+= --disable-ninja
# Include (optional) settings to cross-build rust
.include "cross.mk"
+.if !empty(rust.BUILD_TARGET)
+BUILD_TARGET= ${rust.BUILD_TARGET)
+.endif
+
.if !empty(TARGET)
# Use "dist" build target for cross compile of bootstrap
-BUILD_TARGET= dist
+BUILD_TARGET?= dist
.else
-BUILD_TARGET= build
+BUILD_TARGET?= build
.endif
# Getting RPATH with $ORIGIN into bootstrap may be troublesome, so
Home |
Main Index |
Thread Index |
Old Index