fix mklibs with musl
authorMatteo Croce <rootkit85@yahoo.it>
Thu, 25 Jun 2015 10:14:22 +0000 (10:14 +0000)
committerMatteo Croce <rootkit85@yahoo.it>
Thu, 25 Jun 2015 10:14:22 +0000 (10:14 +0000)
crate a relative symlink to libc.so because
make wildcard function ignores broken symlinks

SVN-Revision: 46123

package/Makefile
toolchain/musl/patches/300-relative.patch [new file with mode: 0644]

index 5fb7363bc92558a7cebb4c685607ede90979dc04..3ef34b1779ae1b42ce7a9c8843c135c51b636b41 100644 (file)
@@ -41,7 +41,7 @@ ifdef CONFIG_USE_MKLIBS
                --sysroot $(STAGING_DIR_ROOT) \
                `cat $(TMP_DIR)/mklibs-libs | sed 's:/*[^/]\+/*$$::' | uniq | sed 's:^$(STAGING_DIR_ROOT):-L :'` \
                --ldlib $(patsubst $(STAGING_DIR_ROOT)/%,/%,$(firstword $(wildcard \
-                       $(foreach name,ld-uClibc.so.* ld-linux.so.* ld-*.so, \
+                       $(foreach name,ld-uClibc.so.* ld-linux.so.* ld-*.so ld-musl-*.so.*, \
                          $(STAGING_DIR_ROOT)/lib/$(name) \
                        )))) \
                --target $(REAL_GNU_TARGET_NAME) \
diff --git a/toolchain/musl/patches/300-relative.patch b/toolchain/musl/patches/300-relative.patch
new file mode 100644 (file)
index 0000000..dc7d167
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -180,7 +180,7 @@ $(DESTDIR)$(includedir)/%: include/%
+       $(INSTALL) -D -m 644 $< $@
+ $(DESTDIR)$(LDSO_PATHNAME): $(DESTDIR)$(libdir)/libc.so
+-      $(INSTALL) -D -l $(libdir)/libc.so $@ || true
++      $(INSTALL) -D -l libc.so $@ || true
+ install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),)