summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/libpthread/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libpthread/Makefile b/package/libpthread/Makefile
index 1c7a19e3b..13de900ff 100644
--- a/package/libpthread/Makefile
+++ b/package/libpthread/Makefile
@@ -21,6 +21,8 @@ PKG_DESCR:= posix threading library
PKG_SECTION:= base/libs
PKG_OPTS:= noremove nostaging noscripts
+PKG_CFLINE_LIBPTHREAD:= depends on ADK_TARGET_WITH_NPTL
+
NO_DISTFILES:= 1
include ${ADK_TOPDIR}/mk/package.mk
@@ -33,8 +35,10 @@ INSTALL_STYLE:= manual
libpthread-install:
ifeq ($(ADK_TARGET_LIB_MUSL),)
+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
include ${ADK_TOPDIR}/mk/pkg-bottom.mk