diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 13:29:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-07 13:29:16 +0000 |
commit | c90fcb359355a9aa6ab0e5676ad42d6fd27f7471 (patch) | |
tree | 051f428993650a19f2234fa9bea1abb3feb5e98e /config | |
parent | 72f8f616768c2c3333fcf24d96d78eed1cff0c89 (diff) | |
download | master-187ad058-c90fcb359355a9aa6ab0e5676ad42d6fd27f7471.tar.gz master-187ad058-c90fcb359355a9aa6ab0e5676ad42d6fd27f7471.tar.bz2 master-187ad058-c90fcb359355a9aa6ab0e5676ad42d6fd27f7471.zip |
build: don't add -fno-plt for ARC
Curent ARC toolchain fails to build libstdc++ if -fno-plt is used.
Lots of following error messages appear:
------------------->8------------------
...
staging_dir/toolchain-arc_arc700_gcc-arc-2015.06_uClibc-1.0.9/arc-openwrt-linux-uclibc/bin/ld:
BFD (GNU Binutils) 2.23.2 assertion fail elf32-arc.c:2786
collect2: error: ld returned 1 exit status
------------------->8------------------
In newer binutils (still in development) for ARC rewritten from
scratch this seem to not happen, so once new binutils for ARC hit
the street this patch might be reverted.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48642 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'config')
-rw-r--r-- | config/Config-devel.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/Config-devel.in b/config/Config-devel.in index 5970ac238d..938f0b3c9c 100644 --- a/config/Config-devel.in +++ b/config/Config-devel.in @@ -106,7 +106,7 @@ menuconfig DEVEL config EXTRA_OPTIMIZATION string "Additional compiler options" if DEVEL - default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN + default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc default "-fno-caller-saves" help Extra target-independent optimizations to use when building for the target. |