[coreboot-gerrit] New patch to review for coreboot: xcompile: Pass `no-pic`
Paul Menzel (paulepanter@users.sourceforge.net)
gerrit at coreboot.org
Sun Oct 23 20:46:31 CEST 2016
Paul Menzel (paulepanter at users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17097
-gerrit
commit 285f138dd12bdddaa0d54caffed019fdbe72a82d
Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date: Sun Oct 23 20:38:36 2016 +0200
xcompile: Pass `no-pic`
Some distribution compilers, enable PIE by default, causing a build
failure.
Explicitly disable PIC support.
Change-Id: I1b7d7168e34c5c93c25bc03ffa49b2eeac0e76f8
Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
---
util/xcompile/xcompile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 37e6404..2455467 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -184,6 +184,8 @@ detect_special_flags() {
testcc "$GCC" "$CFLAGS_GCC -fno-stack-protector"&&
CFLAGS_GCC="$CFLAGS_GCC -fno-stack-protector"
+ testcc "$GCC" "$CFLAGS_GCC -fno-pic"&&
+ CFLAGS_GCC="$CFLAGS_GCC -fno-pic"
testcc "$GCC" "$CFLAGS_GCC -Wl,--build-id=none" &&
CFLAGS_GCC="$CFLAGS_GCC -Wl,--build-id=none"
More information about the coreboot-gerrit
mailing list