diff options
author | Like Ma <likemartinma@gmail.com> | 2022-08-13 01:19:22 +0800 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-08-19 22:02:11 +1200 |
commit | a9f77be56f9707eb83cffa461e48de9e3025dc5e (patch) | |
tree | d6aadcddcb6e829f11a8685a6afc7278d61821bc /config | |
parent | 38377d3c8d5a53b46d3609f6aba3056c42399759 (diff) | |
download | crosstool-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 'config')
-rw-r--r-- | config/cc/gcc.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in index 3112ac51..c90f8790 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -197,6 +197,17 @@ config CC_GCC_LTO_ZSTD #----------------------------------------------------------------------------- comment "Settings for libraries running on target" +config CC_GCC_ENABLE_DEFAULT_PIE + bool + prompt "Enable Position Independent Executable as default" + default y + depends on GCC_6_or_later && ! WINDOWS && ! ARCH_MIPS + help + Pass --enable-default-pie to crossgcc's configure. + + This will let crossgcc compile executable as Position Independent + Executable by default. + config CC_GCC_ENABLE_TARGET_OPTSPACE bool prompt "Optimize gcc libs for size" |