summaryrefslogtreecommitdiff
path: root/package/musl
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-31 17:58:50 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-31 17:59:05 (GMT)
commit0d5a4bd73159fc794fdb417d49ab810b26e7d059 (patch)
tree53ef333b84afbbe7d6fed470885d716075295395 /package/musl
parent9e3458d13ae01591479732c1fe0cada8fd2259b7 (diff)
rework static linking support, works with musl/glibc, fails to boot with uclibc (qemu-x86)
Diffstat (limited to 'package/musl')
-rw-r--r--package/musl/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index bc6b831..a440cd7 100644
--- a/package/musl/Makefile
+++ b/package/musl/Makefile
@@ -61,6 +61,7 @@ endif
# do nothing, musl is already build in toolchain directory
do-install:
+ifneq ($(ADK_TARGET_USE_STATIC_LIBS),y)
${INSTALL_DIR} $(IDIR_MUSL)/bin
${INSTALL_DIR} $(IDIR_MUSL)/$(ADK_TARGET_LIBC_PATH)
$(CP) $(STAGING_TARGET_DIR)/usr/lib/libc.so $(IDIR_MUSL)/$(ADK_TARGET_LIBC_PATH)
@@ -68,6 +69,7 @@ do-install:
ln -sf libc.so ld-musl-$(MARCH).so.1)
(cd $(IDIR_MUSL)/bin && \
ln -sf ../lib/ld-musl-$(MARCH).so.1 ldd)
+endif
musl-dev-install: