aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLike Ma <likemartinma@gmail.com>2022-08-13 01:19:22 +0800
committerChris Packham <judge.packham@gmail.com>2022-08-19 22:02:11 +1200
commita9f77be56f9707eb83cffa461e48de9e3025dc5e (patch)
treed6aadcddcb6e829f11a8685a6afc7278d61821bc /scripts
parent38377d3c8d5a53b46d3609f6aba3056c42399759 (diff)
downloadcrosstool-ng-a9f77be56f9707eb83cffa461e48de9e3025dc5e.tar.gz
crosstool-ng-a9f77be56f9707eb83cffa461e48de9e3025dc5e.tar.bz2
crosstool-ng-a9f77be56f9707eb83cffa461e48de9e3025dc5e.zip
Add CC_GCC_ENABLE_DEFAULT_PIE
Enable Position Independent Executable as default Pass --enable-default-pie to crossgcc's configure Signed-off-by: Like Ma <likemartinma@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index d9e9da98..bec66c2e 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -436,6 +436,10 @@ do_gcc_core_backend() {
extra_config+=("--with-host-libstdcxx=${host_libstdcxx_flags[*]}")
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")