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/uclibc/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/uclibc') diff --git a/package/uclibc/Makefile b/package/uclibc/Makefile index 7a76233b8..0c5daf272 100644 --- a/package/uclibc/Makefile +++ b/package/uclibc/Makefile @@ -31,6 +31,7 @@ do-install: test -z $(ADK_RUNTIME_TIMEZONE) || \ grep $(ADK_RUNTIME_TIMEZONE) ./files/tz.lst | \ cut -f 2 > $(IDIR_UCLIBC)/etc/TZ +ifneq ($(ADK_TARGET_USE_STATIC_LIBS),y) $(CP) $(STAGING_TARGET_DIR)/lib/libc.so.* $(IDIR_UCLIBC)/$(ADK_TARGET_LIBC_PATH) $(CP) $(STAGING_TARGET_DIR)/lib/libuClibc-$(GIT_VERSION).so \ $(IDIR_UCLIBC)/$(ADK_TARGET_LIBC_PATH) @@ -42,6 +43,7 @@ do-install: $(CP) $(STAGING_TARGET_DIR)/lib/$$file-$(GIT_VERSION).so \ $(IDIR_UCLIBC)/$(ADK_TARGET_LIBC_PATH); \ done +endif uclibc-dev-install: ${INSTALL_DIR} ${IDIR_UCLIBC_DEV}/usr/lib ${IDIR_UCLIBC_DEV}/$(ADK_TARGET_LIBC_PATH) -- cgit v1.2.3