Author: nbd
Date: 2016-02-07 14:29:16 +0100 (Sun, 07 Feb 2016)
New Revision: 48642

Modified:
   trunk/config/Config-devel.in
Log:
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 <[email protected]>
Cc: Felix Fietkau <[email protected]>
Cc: Jo-Philipp Wich <[email protected]>
Cc: Jonas Gorski <[email protected]>

Modified: trunk/config/Config-devel.in
===================================================================
--- trunk/config/Config-devel.in        2016-02-07 13:29:08 UTC (rev 48641)
+++ trunk/config/Config-devel.in        2016-02-07 13:29:16 UTC (rev 48642)
@@ -106,7 +106,7 @@
 
        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.
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to