diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-09-11 19:20:02 +0300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-09-26 10:47:31 +1300 |
commit | 411b052361132dea3f8299fb25ad65aae630760e (patch) | |
tree | 4636bfde18de71881c7df959e7e07b694d42fe60 /config | |
parent | 1b475008757aecd671a2ba3be70c42c8f4187c99 (diff) | |
download | crosstool-ng-411b052361132dea3f8299fb25ad65aae630760e.tar.gz crosstool-ng-411b052361132dea3f8299fb25ad65aae630760e.tar.bz2 crosstool-ng-411b052361132dea3f8299fb25ad65aae630760e.zip |
avr,pru: Disable CT_CC_GCC_ENABLE_DEFAULT_PIE
PIE is not supported by PRU and AVR backends for GCC.
This fixes LD errors when trying to link user programs with a
crosstool-NG toolchain:
/home/dinux/x-tools/avr/lib/gcc/avr/12.2.0/../../../../avr/bin/ld: -pie not supported
collect2: error: ld returned 1 exit status
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'config')
-rw-r--r-- | config/cc/gcc.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in index c90f8790..9a9e7c65 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -201,7 +201,7 @@ 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 + depends on GCC_6_or_later && ! WINDOWS && ! ARCH_MIPS && ! ARCH_AVR && ! ARCH_PRU help Pass --enable-default-pie to crossgcc's configure. |