archlinux comes with gcc version 4.6.2 by default now and building
toolchain fails without this patch.

Patch fixes trac ticket: https://dev.openwrt.org/ticket/10587

Also, it should fix this:

https://lists.openwrt.org/pipermail/openwrt-devel/2011-December/013100.html

Signed-off-by: Luka Perkov < openwrt ->-to->- lukaperkov.net >
---

Index: toolchain/gcc/patches/4.6.1/821-lstdc.patch
===================================================================
--- toolchain/gcc/patches/4.6.1/821-lstdc.patch (revision 0)
+++ toolchain/gcc/patches/4.6.1/821-lstdc.patch (working copy)
@@ -0,0 +1,11 @@
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -314,7 +314,7 @@ GMPLIBS = @GMPLIBS@
+ GMPINC = @GMPINC@
+ 
+ # How to find PPL
+-PPLLIBS = @PPLLIBS@
++PPLLIBS = @PPLLIBS@ -lstdc++
+ PPLINC = @PPLINC@
+ 
+ # How to find CLOOG
Index: toolchain/gcc/patches/4.5-linaro/821-lstdc.patch
===================================================================
--- toolchain/gcc/patches/4.5-linaro/821-lstdc.patch    (revision 0)
+++ toolchain/gcc/patches/4.5-linaro/821-lstdc.patch    (working copy)
@@ -0,0 +1,11 @@
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -311,7 +311,7 @@ GMPLIBS = @GMPLIBS@
+ GMPINC = @GMPINC@
+ 
+ # How to find PPL
+-PPLLIBS = @PPLLIBS@
++PPLLIBS = @PPLLIBS@ -lstdc++
+ PPLINC = @PPLINC@
+ 
+ # How to find CLOOG
Index: toolchain/gcc/patches/4.6-linaro/821-lstdc.patch
===================================================================
--- toolchain/gcc/patches/4.6-linaro/821-lstdc.patch    (revision 0)
+++ toolchain/gcc/patches/4.6-linaro/821-lstdc.patch    (working copy)
@@ -0,0 +1,11 @@
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -311,7 +311,7 @@ GMPLIBS = @GMPLIBS@
+ GMPINC = @GMPINC@
+ 
+ # How to find PPL
+-PPLLIBS = @PPLLIBS@
++PPLLIBS = @PPLLIBS@ -lstdc++
+ PPLINC = @PPLINC@
+ 
+ # How to find CLOOG
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to