summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/libgcc/Makefile2
-rw-r--r--package/libpthread/Makefile2
-rw-r--r--package/librt/Makefile2
3 files changed, 6 insertions, 0 deletions
diff --git a/package/libgcc/Makefile b/package/libgcc/Makefile
index 91a5b18c1..3a974f302 100644
--- a/package/libgcc/Makefile
+++ b/package/libgcc/Makefile
@@ -35,6 +35,7 @@ INSTALL_STYLE:= manual
libgcc-install:
$(INSTALL_DIR) ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
ifeq ($(ADK_TARGET_UCLINUX),)
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
ifeq ($(ADK_LINUX_SH),y)
ifeq ($(ADK_TARGET_LIB_GLIBC),)
${CP} ${STAGING_TARGET_DIR}/lib/m4-nofpu/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
@@ -43,5 +44,6 @@ else
${CP} ${STAGING_TARGET_DIR}/lib/libgcc*.so* ${IDIR_LIBGCC}/$(ADK_TARGET_LIBC_PATH)
endif
endif
+endif
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libpthread/Makefile b/package/libpthread/Makefile
index 13de900ff..6ba962062 100644
--- a/package/libpthread/Makefile
+++ b/package/libpthread/Makefile
@@ -35,10 +35,12 @@ INSTALL_STYLE:= manual
libpthread-install:
ifeq ($(ADK_TARGET_LIB_MUSL),)
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
ifeq ($(ADK_TARGET_WITH_NPTL),y)
${INSTALL_DIR} ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
${CP} ${STAGING_TARGET_DIR}/lib/libpthread*.so* ${IDIR_LIBPTHREAD}/$(ADK_TARGET_LIBC_PATH)
endif
endif
+endif
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/librt/Makefile b/package/librt/Makefile
index 3408ec235..0b26ee121 100644
--- a/package/librt/Makefile
+++ b/package/librt/Makefile
@@ -31,7 +31,9 @@ INSTALL_STYLE:= manual
librt-install:
${INSTALL_DIR} ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
ifeq ($(ADK_TARGET_LIB_MUSL),)
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
${CP} ${STAGING_TARGET_DIR}/lib/librt*.so* ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
endif
+endif
include ${ADK_TOPDIR}/mk/pkg-bottom.mk