scripts/crosstool-NG.sh.in
changeset 3246 ff6b7a9bd370
parent 3176 20f2459b97bf
child 3267 8e2077dfc250
     1.1 --- a/scripts/crosstool-NG.sh.in	Mon Jan 28 21:53:18 2013 +0100
     1.2 +++ b/scripts/crosstool-NG.sh.in	Fri Nov 15 18:58:42 2013 +0100
     1.3 @@ -154,6 +154,9 @@
     1.4  # Sanity check some directories
     1.5  CT_TestAndAbort "'CT_PREFIX_DIR' is not set: where should I install?" -z "${CT_PREFIX_DIR}"
     1.6  
     1.7 +# Avoid multiple '/' in the prefix dir, it breaks relocatability
     1.8 +CT_PREFIX_DIR="$( "${sed}" -r -e 's:/+:/:g; s:/*$::;' <<<"${CT_PREFIX_DIR}" )"
     1.9 +
    1.10  # Second kludge: merge user-supplied target CFLAGS with architecture-provided
    1.11  # target CFLAGS. Do the same for LDFLAGS in case it happens in the future.
    1.12  # Put user-supplied flags at the end, so that they take precedence.