mirror of https://github.com/hak5/openwrt-owl.git
toolchain: define MUSL dynamic linker for SPARC
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: 37938owl
parent
a43c2d4e6f
commit
cb6e729be7
|
@ -226,3 +226,15 @@
|
||||||
|
|
||||||
#undef LINK_SPEC
|
#undef LINK_SPEC
|
||||||
#define 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
|
||||||
|
|
|
@ -306,3 +306,16 @@
|
||||||
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
|
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
|
||||||
- BIONIC_DYNAMIC_LINKERN32)
|
- BIONIC_DYNAMIC_LINKERN32)
|
||||||
+ BIONIC_DYNAMIC_LINKERN32, MUSL_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
|
||||||
|
|
||||||
|
|
|
@ -306,3 +306,16 @@
|
||||||
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
|
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
|
||||||
- BIONIC_DYNAMIC_LINKERN32)
|
- BIONIC_DYNAMIC_LINKERN32)
|
||||||
+ BIONIC_DYNAMIC_LINKERN32, MUSL_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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue