From c95833d52f1874aafd3da27b62b326358526d3cc 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] 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 2380717..4b529a7 100755 --- a/toolchain.sh +++ b/toolchain.sh @@ -14,11 +14,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"