From acb849c833df1c305298b255a8fb9feb9ba3fe79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sun, 11 Aug 2024 12:01:58 +0000 Subject: [PATCH 1/2] fix: remove unnecessary options from FLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- toolchain.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toolchain.sh b/toolchain.sh index 56552aa..d4ae999 100755 --- a/toolchain.sh +++ b/toolchain.sh @@ -16,11 +16,11 @@ NJOBS=-j"$(nproc)" PATH=$PATH:$PREFIX/bin export CFLAGS="-w" export CXXFLAGS="-w" -export CFLAGS_FOR_TARGET="-m64 -O3 -fPIE" -export GOFLAGS_FOR_TARGET="-m64 -O3 -fPIE" -export FCFLAGS_FOR_TARGET="-m64 -O3 -fPIE" -export FFLAGS_FOR_TARGET="-m64 -O3 -fPIE" -export CXXFLAGS_FOR_TARGET="-m64 -O3 -fPIE" +export CFLAGS_FOR_TARGET="-fPIE" +export GOFLAGS_FOR_TARGET="-fPIE" +export FCFLAGS_FOR_TARGET="-fPIE" +export FFLAGS_FOR_TARGET="-fPIE" +export CXXFLAGS_FOR_TARGET="-fPIE" echo "Build bootstrap toolchain for $TARGET with $NJOBS jobs for $PREFIX" From c8e51e94f7c184e26267f642af78a3981a334b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Sun, 11 Aug 2024 15:40:28 +0000 Subject: [PATCH 2/2] fix: add -pie to FLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- toolchain.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toolchain.sh b/toolchain.sh index d4ae999..ab9cbfd 100755 --- a/toolchain.sh +++ b/toolchain.sh @@ -16,11 +16,11 @@ NJOBS=-j"$(nproc)" PATH=$PATH:$PREFIX/bin export CFLAGS="-w" export CXXFLAGS="-w" -export CFLAGS_FOR_TARGET="-fPIE" -export GOFLAGS_FOR_TARGET="-fPIE" -export FCFLAGS_FOR_TARGET="-fPIE" -export FFLAGS_FOR_TARGET="-fPIE" -export CXXFLAGS_FOR_TARGET="-fPIE" +export CFLAGS_FOR_TARGET="-fPIE -pie" +export GOFLAGS_FOR_TARGET="-fPIE -pie" +export FCFLAGS_FOR_TARGET="-fPIE -pie" +export FFLAGS_FOR_TARGET="-fPIE -pie" +export CXXFLAGS_FOR_TARGET="-fPIE -pie" echo "Build bootstrap toolchain for $TARGET with $NJOBS jobs for $PREFIX"