From a183b3f8bcdafe722a6232b9ea10c4951d6e588e Mon Sep 17 00:00:00 2001 From: "Bart vdr. Meulen" Date: Sun, 2 Aug 2009 16:45:33 +0200 Subject: Add g++ to required tools Because gmp is now always build with --enable-cxx, g++ has become a required tool Signed-off-by: Bart vdr Meulen --- --- scripts/crosstool-NG.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 36c77bac..6382c0a6 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -405,7 +405,7 @@ if [ -z "${CT_RESTART}" ]; then else case "${tool}" in # We'll at least need some of them... - ar|as|gcc|ld|nm|objcopy|objdump|ranlib) + ar|as|gcc|g++|ld|nm|objcopy|objdump|ranlib) CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" ;; # Some are conditionnally required -- cgit v1.2.3 From 7c3dcb42dc4d7f2e3adeb40f954ee94ef1afa7ee Mon Sep 17 00:00:00 2001 From: "Bart vdr. Meulen" Date: Sun, 2 Aug 2009 16:45:43 +0200 Subject: fix wrapper script for symlinks The wrapper script placed around the target binaries when using the companion libraries does not work for symbolic links The wrapper scripts needs to follow the links before calling the actual binary Signed-off-by: Bart vdr. Meulen --- --- scripts/wrapper.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/wrapper.in b/scripts/wrapper.in index 6222333d..1c501ebf 100644 --- a/scripts/wrapper.in +++ b/scripts/wrapper.in @@ -1,7 +1,8 @@ #!/bin/sh -dirname="$(dirname "${0}")" -basename="$(basename "${0}")" +canonicalizedname=$(readlink -nm "${0}") +dirname="$(dirname "${canonicalizedname}")" +basename="$(basename "${canonicalizedname}")" ld_lib_path="$(dirname "${dirname}")/lib" -- cgit v1.2.3