summaryrefslogtreecommitdiff
path: root/package/libs
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:47 +0000
commit6e6d7003bbd76abed3e444ec51a402a4d74e902b (patch)
tree144e2d8bdf74383659ecab91b16270ccc8620716 /package/libs
parent66393168d39dfa54b50d066e9de2aa324c73365e (diff)
downloadmtk-20170518-6e6d7003bbd76abed3e444ec51a402a4d74e902b.zip
mtk-20170518-6e6d7003bbd76abed3e444ec51a402a4d74e902b.tar.gz
mtk-20170518-6e6d7003bbd76abed3e444ec51a402a4d74e902b.tar.bz2
toolchain: add a symlink for musl softfloat ldso to the path where our gcc expects it
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39966
Diffstat (limited to 'package/libs')
-rw-r--r--package/libs/toolchain/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile
index 202e9d0..a29b322 100644
--- a/package/libs/toolchain/Makefile
+++ b/package/libs/toolchain/Makefile
@@ -428,6 +428,9 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
$(1)/lib/
endef
+ LD_MUSL_NAME = $(notdir $(firstword $(wildcard $(TOOLCHAIN_DIR)/lib/ld-musl-*.so*)))
+ $(warning LD_MUSL_NAME='$(LD_MUSL_NAME)')
+
define Package/musl/install
$(INSTALL_DIR) $(1)/lib
$(CP) \
@@ -436,6 +439,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
$(CP) \
$(TOOLCHAIN_DIR)/lib/libc.so* \
$(1)/lib/
+ $(if $(findstring -sf.so,$(LD_MUSL_NAME)),ln -s $(LD_MUSL_NAME) $(1)/lib/$(subst -sf.so,.so,$(LD_MUSL_NAME)))
endef
define Package/libc/install