diff options
author | Chris Packham <judge.packham@gmail.com> | 2025-05-25 11:20:49 +1200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2025-05-30 08:33:13 +1200 |
commit | ef676fb85a371fcfb67335044bf35f65701360ea (patch) | |
tree | c857e20c2f10a290ff7c8e72712f782628515b24 | |
parent | 031e08286711b60d61cae89d1649bc751ed083a6 (diff) | |
download | crosstool-ng-ef676fb85a371fcfb67335044bf35f65701360ea.tar.gz crosstool-ng-ef676fb85a371fcfb67335044bf35f65701360ea.tar.bz2 crosstool-ng-ef676fb85a371fcfb67335044bf35f65701360ea.zip |
gcc: Add default pie support to do_gcc_backend
This was added to do_gcc_core_backend but not do_gcc_backend so the
final compiler didn't have the configuration. Fix this so that the
setting affects bot the core and final compilers.
Fixes #2362
Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r-- | scripts/build/cc/gcc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 8131af54..57f5f222 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -1176,6 +1176,10 @@ do_gcc_backend() { fi fi + if [ "${CT_CC_GCC_ENABLE_DEFAULT_PIE}" = "y" ]; then + extra_config+=("--enable-default-pie") + fi + if [ "${CT_CC_GCC_ENABLE_TARGET_OPTSPACE}" = "y" ] || \ [ "${enable_optspace}" = "yes" ]; then extra_config+=("--enable-target-optspace") |