From f2c648593a094b8f28af633fd2bc145d5c97d039 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Fri, 27 Sep 2019 09:40:12 -0500 Subject: 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. --- resources/scripts/helpers/download/crossgcc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/download/crossgcc b/resources/scripts/helpers/download/crossgcc index 5469c866..8522458a 100755 --- a/resources/scripts/helpers/download/crossgcc +++ b/resources/scripts/helpers/download/crossgcc @@ -46,9 +46,8 @@ rm -Rf "crossgcc/" cd 3rdparty/vboot/ git reset --hard ${vbootrevision} ) - # workaround to fix the error on debian stretch and later, when building - # GMP. If -pie is enabled in GCC, then --with-pic must be used when compiling - git am ../resources/libreboot/patch/crossgcc/gccfix.diff + # If -pie is enabled in GCC, then --with-pic must be used when compiling + git am ../resources/libreboot/patch/crossgcc/looking_for_pie.patch # Update URI pointing to the version of libelf we need git am ../resources/libreboot/patch/crossgcc/libelf.patch #Patch to add hash checking to buildgcc -- cgit v1.2.3-70-g09d2