toolchain: define MUSL dynamic linker for SPARC
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 Sep 2013 12:08:27 +0000 (12:08 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 11 Sep 2013 12:08:27 +0000 (12:08 +0000)
SPARC builds are currently broken because we do not define the MUSL
dynamic linker name, fix that.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 37938

toolchain/gcc/patches/4.6-linaro/200-musl.patch
toolchain/gcc/patches/4.8-linaro/200-musl.patch
toolchain/gcc/patches/4.8.0/200-musl.patch

index f861e0b51e405691bfe82eb6a8ce391bbfa2d9d7..1cc5756dfb797ef554bc2c84bb9a29523675887f 100644 (file)
  
  #undef LINK_SPEC
  #define LINK_SPEC "\
+--- a/gcc/config/sparc/linux64.h       2013-09-10 10:02:45.663973856 +0100
++++ b/gcc/config/sparc/linux64.h       2013-09-10 10:03:17.871972435 +0100
+@@ -104,6 +104,9 @@
+ #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+ #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
++#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-sparc.so.1"
++#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-sparc.so.1"
++
+ #ifdef SPARC_BI_ARCH
+ #undef SUBTARGET_EXTRA_SPECS
index 8cf45eb61a2e94ae564fb82446c923e3d4e739c0..951464d2deefb8ba67689c4826b9bfed9ca36cdf 100644 (file)
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
 -                       BIONIC_DYNAMIC_LINKERN32)
 +                       BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
+--- a/gcc/config/sparc/linux64.h       2013-09-10 10:02:45.663973856 +0100
++++ b/gcc/config/sparc/linux64.h       2013-09-10 10:03:17.871972435 +0100
+@@ -104,6 +104,9 @@
+ #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+ #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
++#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-sparc.so.1"
++#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-sparc.so.1"
++
+ #ifdef SPARC_BI_ARCH
+ #undef SUBTARGET_EXTRA_SPECS
+
index 94a45e217a1ccabf7a38dd79db044d9202721835..2e6df47e45f5371252bf9798522017fd8caae07c 100644 (file)
    CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
 -                       BIONIC_DYNAMIC_LINKERN32)
 +                       BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
+--- a/gcc/config/sparc/linux64.h       2013-09-10 10:02:45.663973856 +0100
++++ b/gcc/config/sparc/linux64.h       2013-09-10 10:03:17.871972435 +0100
+@@ -104,6 +104,9 @@
+ #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+ #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
++#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-sparc.so.1"
++#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-sparc.so.1"
++
+ #ifdef SPARC_BI_ARCH
+ #undef SUBTARGET_EXTRA_SPECS
+