From: Khem Raj Date: Sat, 17 Mar 2018 03:40:32 +0000 (-0700) Subject: gcc: Do not use --with-linker-hash-style if LINKER_HASH_STYLE is empty X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e176ab07d1afbb5d7e80d39d49b0f68738509c18;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git gcc: Do not use --with-linker-hash-style if LINKER_HASH_STYLE is empty We allow to set LINKER_HASH_STYLE to be empty so this would fail since --with-linker-hash-style needs an argument and cant be empty Signed-off-by: Khem Raj Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/gcc/gcc-7.3.inc b/meta/recipes-devtools/gcc/gcc-7.3.inc index b0cba27df20..d968c322d21 100644 --- a/meta/recipes-devtools/gcc/gcc-7.3.inc +++ b/meta/recipes-devtools/gcc/gcc-7.3.inc @@ -101,7 +101,7 @@ EXTRA_OECONF_BASE = "\ --disable-bootstrap \ --disable-libmudflap \ --with-system-zlib \ - --with-linker-hash-style=${LINKER_HASH_STYLE} \ + ${@'--with-linker-hash-style=${LINKER_HASH_STYLE}' if '${LINKER_HASH_STYLE}' else ''} \ --enable-linker-build-id \ --with-ppl=no \ --with-cloog=no \