summaryrefslogtreecommitdiff
path: root/scripts/build/libc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:21:12 (GMT)
committerYann E. MORIN" <yann.morin.1998@free.fr>2013-11-15 20:21:12 (GMT)
commitedd01b7729d84c8c7d00e118b4eee55d46da8030 (patch)
treef30cedc205a87937d970bb0b249fe87537ac7cb8 /scripts/build/libc
parent0226e35db7a740a842263e555a6d98e30f72f8d0 (diff)
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-common2
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 c01e671..b9c55cb 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}"