mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-30 08:03:59 +00:00
scripts: remove duplicate '/' in prefix, it breaks relocation
Reported-by: Richard Weinberger <richard.weinberger@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
This commit is contained in:
parent
24953be31a
commit
a5b6b0d129
@ -154,6 +154,9 @@ CT_DoBuildTargetTuple
|
||||
# Sanity check some directories
|
||||
CT_TestAndAbort "'CT_PREFIX_DIR' is not set: where should I install?" -z "${CT_PREFIX_DIR}"
|
||||
|
||||
# Avoid multiple '/' in the prefix dir, it breaks relocatability
|
||||
CT_PREFIX_DIR="$( "${sed}" -r -e 's:/+:/:g; s:/*$::;' <<<"${CT_PREFIX_DIR}" )"
|
||||
|
||||
# Second kludge: merge user-supplied target CFLAGS with architecture-provided
|
||||
# target CFLAGS. Do the same for LDFLAGS in case it happens in the future.
|
||||
# Put user-supplied flags at the end, so that they take precedence.
|
||||
|
Loading…
x
Reference in New Issue
Block a user