diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2019-09-27 09:40:12 -0500 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2019-09-27 09:40:12 -0500 |
commit | f2c648593a094b8f28af633fd2bc145d5c97d039 (patch) | |
tree | f03a2c2863e19120b21b81f644319fa6919ccf34 /resources/libreboot/patch/crossgcc/gccfix.diff | |
parent | 9797d4119d5de6cb4db1aec928a79038dc3f066b (diff) | |
download | librebootfr-f2c648593a094b8f28af633fd2bc145d5c97d039.tar.gz librebootfr-f2c648593a094b8f28af633fd2bc145d5c97d039.zip |
Use '--with-pic' if building gmp with '-pie'
The updated regex catches more instances where '-pie' would be
enabled. Parabola's gcc is built with a spec string which causes
issues when building gmp (as part of the crossgcc build process)
using the old build system.
Diffstat (limited to 'resources/libreboot/patch/crossgcc/gccfix.diff')
-rw-r--r-- | resources/libreboot/patch/crossgcc/gccfix.diff | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/resources/libreboot/patch/crossgcc/gccfix.diff b/resources/libreboot/patch/crossgcc/gccfix.diff deleted file mode 100644 index 49e6227b..00000000 --- a/resources/libreboot/patch/crossgcc/gccfix.diff +++ /dev/null @@ -1,27 +0,0 @@ -From ea0c2d76c4f16eccaafcb2c0741f76825505bafc Mon Sep 17 00:00:00 2001 -From: Nico Huber <nico.huber@secunet.com> -Date: Thu, 22 Dec 2016 16:05:54 +0100 -Subject: [PATCH] DONOTMERGE buildgcc: Build GMP `--with-pic` if GCC defaults to `-pie` - -Change-Id: I5f3185af9c8d599379a628e18724b217b88be974 -Signed-off-by: Nico Huber <nico.huber@secunet.com> ---- - -diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc -index 97c38b8..4eefd43 100755 ---- a/util/crossgcc/buildgcc -+++ b/util/crossgcc/buildgcc -@@ -515,6 +515,13 @@ - } - - build_GMP() { -+ # Check if GCC enables `-pie` by default (likely on Debian Stretch). -+ # We have to use `--with-pic` then. -+ if "${CC}" -dumpspecs 2>/dev/null | grep -q '[{;][[:space:]]*:-pie\>' -+ then -+ OPTIONS="$OPTIONS --with-pic" -+ fi -+ - CC="$CC" ../${GMP_DIR}/configure --disable-shared --enable-fat \ - --prefix=$TARGETDIR $OPTIONS \ - || touch .failed |