From 0d5a4bd73159fc794fdb417d49ab810b26e7d059 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 31 May 2014 19:58:50 +0200 Subject: rework static linking support, works with musl/glibc, fails to boot with uclibc (qemu-x86) --- package/musl/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/musl') 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: -- cgit v1.2.3