diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-11-15 21:21:12 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2013-11-15 21:21:12 +0100 |
commit | edd01b7729d84c8c7d00e118b4eee55d46da8030 (patch) | |
tree | f30cedc205a87937d970bb0b249fe87537ac7cb8 /scripts/build/libc | |
parent | 0226e35db7a740a842263e555a6d98e30f72f8d0 (diff) | |
download | crosstool-ng-edd01b7729d84c8c7d00e118b4eee55d46da8030.tar.gz crosstool-ng-edd01b7729d84c8c7d00e118b4eee55d46da8030.tar.bz2 crosstool-ng-edd01b7729d84c8c7d00e118b4eee55d46da8030.zip |
libc/(e)glibc: fix extra configparms
In case ${CT_LIBC_GLIBC_CONFIGPARMS} starts with a dash, printf will try
to interpret it as an option for itself, and will invariably flail in
panic as it does not recognise any of it.
Use a more robust solution, as suggested by Cody.
Reported-by: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Cody P Schafer <devel-lists@codyps.com>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc-eglibc.sh-common | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index c01e671c..b9c55cb9 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -304,7 +304,7 @@ do_libc_backend_once() { fi # Pre-seed the configparms file with values from the config option - printf "${CT_LIBC_GLIBC_CONFIGPARMS}\n" > configparms + printf "%s\n" "${CT_LIBC_GLIBC_CONFIGPARMS}" > configparms cross_cc=$(CT_Which "${CT_TARGET}-gcc") extra_cc_args+=" ${extra_flags}" |