summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTitus von Boxberg <titus@v9g.de>2010-05-22 15:30:44 (GMT)
committerTitus von Boxberg <titus@v9g.de>2010-05-22 15:30:44 (GMT)
commitafa2b0aa0d22b3570e8906e92667f1862f12972b (patch)
tree824e038dac197ca468ce29cc6a58ea98c3d0307e /scripts
parent98e75760247c424bc7e62b4348618a274c5c2225 (diff)
scripts/build/internals.sh: Always use binary wrapper under BSD/MacOS
The shell wrapper script uses a nonportable call to readlink. Thus, always use the binary wrapper under BSD/MacOS. yann.morin.1998@anciens.enib.fr: Use 'case' instead of 'if'.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/internals.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 555db36..d5fa68f 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -42,6 +42,13 @@ do_finish() {
CT_DoLog EXTRA "Installing toolchain wrappers"
CT_Pushd "${CT_PREFIX_DIR}/bin"
+ case "$CT_SYS_OS" in
+ Darwin|FreeBSD)
+ # wrapper does not work (when using readlink -m)
+ CT_DoLog WARN "Forcing usage of binary tool wrapper"
+ CT_TOOLS_WRAPPER="exec"
+ ;;
+ esac
# Install the wrapper
case "${CT_TOOLS_WRAPPER}" in
script)