diff options
author | Jens Rehsack <sno@netbsd.org> | 2015-11-23 17:14:39 +0100 |
---|---|---|
committer | Jens Rehsack <sno@netbsd.org> | 2015-11-24 20:06:35 +0100 |
commit | 956d9ef2b0db4e9ad08ca06d081318260ced05de (patch) | |
tree | e17499fc9a380824eea8b2e5f0c8fd8202e73653 /Configure.pl | |
parent | 72d52f2982809df3576ef47da604e1656f47a63e (diff) |
tools/build: pass extra arguments to rakudo only when necessary
Don't pass unspecified configure parameters (namely --sdkroot and --sysroot)
to avoid configure errors in rakudo.
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Diffstat (limited to 'Configure.pl')
-rw-r--r-- | Configure.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Configure.pl b/Configure.pl index 889da70..f2a7047 100644 --- a/Configure.pl +++ b/Configure.pl @@ -151,6 +151,9 @@ MAIN: { $config{prefix} = $prefix; $config{sdkroot} = $options{sdkroot}; $config{sysroot} = $options{sysroot}; + $config{pass_rakudo_config} = ""; + $config{pass_rakudo_config} .= $options{sdkroot} ? " --sdkroot=\"\$(SDKROOT_DIR)\"" : ""; + $config{pass_rakudo_config} .= $options{sysroot} ? " --sysroot=\"\$(SYSROOT_DIR)\"" : ""; $config{slash} = $slash; $config{'makefile-timing'} = $options{'makefile-timing'}; $config{'stagestats'} = '--stagestats' if $options{'makefile-timing'}; |