summaryrefslogtreecommitdiff
path: root/package/musl/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-31 19:58:50 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-31 19:59:05 +0200
commit0d5a4bd73159fc794fdb417d49ab810b26e7d059 (patch)
tree53ef333b84afbbe7d6fed470885d716075295395 /package/musl/Makefile
parent9e3458d13ae01591479732c1fe0cada8fd2259b7 (diff)
rework static linking support, works with musl/glibc, fails to boot with uclibc (qemu-x86)
Diffstat (limited to 'package/musl/Makefile')
-rw-r--r--package/musl/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/musl/Makefile b/package/musl/Makefile
index bc6b831aa..a440cd7d4 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: