Paul Menzel (paulepanter@users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17097
-gerrit
commit 5ac12dcd31e39f69a858553aae48c4f9a0ed5de1 Author: Paul Menzel paulepanter@users.sourceforge.net Date: Sun Oct 23 20:38:36 2016 +0200
xcompile: Explicitly pass `no-pie`
Some distribution compilers enable Position Independent Executable (PIE) by default, causing a build failure.
So explicitly disable PIE, to fix the build error.
Change-Id: I1b7d7168e34c5c93c25bc03ffa49b2eeac0e76f8 Signed-off-by: Paul Menzel paulepanter@users.sourceforge.net Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- util/xcompile/xcompile | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 37e6404..bcf5233 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-pie"&& + CFLAGS_GCC="$CFLAGS_GCC -fno-pie" testcc "$GCC" "$CFLAGS_GCC -Wl,--build-id=none" && CFLAGS_GCC="$CFLAGS_GCC -Wl,--build-id=none"