Author: nbd
Date: 2014-10-19 23:45:58 +0200 (Sun, 19 Oct 2014)
New Revision: 42974

Modified:
   trunk/package/libs/toolchain/Makefile
Log:
toolchain: when using musl, install a symlink from ld-musl-*.so to /usr/bin/ldd

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/libs/toolchain/Makefile
===================================================================
--- trunk/package/libs/toolchain/Makefile       2014-10-19 21:45:51 UTC (rev 
42973)
+++ trunk/package/libs/toolchain/Makefile       2014-10-19 21:45:58 UTC (rev 
42974)
@@ -468,13 +468,14 @@
   LD_MUSL_NAME = $(notdir $(firstword $(wildcard 
$(TOOLCHAIN_DIR)/lib/ld-musl-*.so*)))
 
   define Package/musl/install
-       $(INSTALL_DIR) $(1)/lib
+       $(INSTALL_DIR) $(1)/lib $(1)/usr/bin
        $(CP) \
                $(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \
                $(1)/lib/
        $(CP) \
                $(TOOLCHAIN_DIR)/lib/libc.so* \
                $(1)/lib/
+       ln -s ../../lib/$(LD_MUSL_NAME) $(1)/usr/bin/ldd
        $(if $(findstring -sf.so,$(LD_MUSL_NAME)),ln -s $(LD_MUSL_NAME) 
$(1)/lib/$(subst -sf.so,.so,$(LD_MUSL_NAME)))
   endef
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to