# HG changeset patch # User "Yann E. MORIN" # Date 1384546872 -3600 # Node ID 74cb9dc864ecf289660b6ccf58dd989f740347c8 # Parent 01ef2159b12a6491c3b7b9e312cf73e55bab08ea 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" Signed-off-by: "Yann E. MORIN" Cc: Cody P Schafer diff -r 01ef2159b12a -r 74cb9dc864ec scripts/build/libc/glibc-eglibc.sh-common --- a/scripts/build/libc/glibc-eglibc.sh-common Fri Nov 15 21:16:52 2013 +0100 +++ b/scripts/build/libc/glibc-eglibc.sh-common Fri Nov 15 21:21:12 2013 +0100 @@ -304,7 +304,7 @@ 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}"