diff options
author | Jens Rehsack <sno@netbsd.org> | 2015-10-22 21:21:42 +0200 |
---|---|---|
committer | Jens Rehsack <sno@netbsd.org> | 2015-11-10 17:45:42 +0100 |
commit | f0def6dc7b4f576668e689cfd44745e506a305ad (patch) | |
tree | ae910cfc290f3e20571416c22d682fd91e3b6f60 /tools/build/Makefile.in | |
parent | 12d32ac0f8fe657730af27ca908d2137211e5ed5 (diff) |
introduce support for sdkroot and sysroot to support cross-builds
To allow building for another location rather the final install prefix,
regardless whether chroot based builds, cross-compile or canadian cross sdk
is the goal, realize the difference between prefix, the sdk-root and the
system root for final target.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Diffstat (limited to 'tools/build/Makefile.in')
-rw-r--r-- | tools/build/Makefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/build/Makefile.in b/tools/build/Makefile.in index 7b70874..68e20c6 100644 --- a/tools/build/Makefile.in +++ b/tools/build/Makefile.in @@ -7,6 +7,8 @@ STAR_VERSION = 2015.09 # install location PREFIX_DIR = @prefix@ +SDKROOT_DIR = @sdkroot@ +SYSROOT_DIR = @sysroot@ # JVM install location JVM_BIN_DIR = $(PREFIX_DIR)/bin @@ -40,7 +42,7 @@ rakudo: @backend_exes@ @backend_exes@: @echo "== Configuring and building Rakudo" - cd $(RAKUDO_DIR) && $(PERL) Configure.pl --prefix=$(PREFIX_DIR) --backends=@backends@ && $(MAKE) + cd $(RAKUDO_DIR) && $(PERL) Configure.pl --sysroot=$(SYSROOT_DIR) --sdkroot=$(SDKROOT_DIR) --prefix=$(PREFIX_DIR) --backends=@backends@ && $(MAKE) rakudo-test: rakudo cd $(RAKUDO_DIR) && $(MAKE) test |