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 09867d721bc076ff5994028099b1bcad13d64e12 Author: Paul Menzel paulepanter@users.sourceforge.net Date: Sun Oct 23 20:38:36 2016 +0200
xcompile: 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 --- 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"