From ef676fb85a371fcfb67335044bf35f65701360ea Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 25 May 2025 11:20:49 +1200 Subject: 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 --- scripts/build/cc/gcc.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/build/cc') 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") -- cgit v1.2.3