From 411b052361132dea3f8299fb25ad65aae630760e Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Sun, 11 Sep 2022 19:20:02 +0300 Subject: 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 --- config/cc/gcc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') 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. -- cgit v1.2.3