summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-14 21:53:43 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-07-14 21:53:43 +0200
commit02a530e40093e933117e6e3ccc1976a14d35b4a3 (patch)
tree9bfaa1a9fdff54c99a6bad84e86ce7a6428f8ed3 /package
parent0906094ae8c0a6d80b6a92524568ac8741a45bbe (diff)
install libpthread linker script, when threads are enabled, reported by Oliver
Diffstat (limited to 'package')
-rw-r--r--package/uclibc-ng/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/uclibc-ng/Makefile b/package/uclibc-ng/Makefile
index 700963637..8f26201de 100644
--- a/package/uclibc-ng/Makefile
+++ b/package/uclibc-ng/Makefile
@@ -52,6 +52,10 @@ uclibc-ng-dev-install:
${INSTALL_DIR} ${IDIR_UCLIBC_NG_DEV}/usr/lib ${IDIR_UCLIBC_NG_DEV}/$(ADK_TARGET_LIBC_PATH)
${CP} ${STAGING_TARGET_DIR}/usr/lib/libc.so ${IDIR_UCLIBC_NG_DEV}/usr/lib
${CP} ${STAGING_TARGET_DIR}/usr/lib/uclibc_nonshared.a ${IDIR_UCLIBC_NG_DEV}/usr/lib
+ifeq ($(ADK_TARGET_LIB_WITH_THREADS),y)
+ ${CP} ${STAGING_TARGET_DIR}/usr/lib/libpthread.so ${IDIR_UCLIBC_NG_DEV}/usr/lib
+ ${CP} ${STAGING_TARGET_DIR}/usr/lib/libpthread_nonshared.a ${IDIR_UCLIBC_NG_DEV}/usr/lib
+endif
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt*.o ${IDIR_UCLIBC_NG_DEV}/usr/lib
for file in libcrypt libdl libm libresolv libutil libuargp; do \
cd $(IDIR_UCLIBC_NG_DEV)/$(ADK_TARGET_LIBC_PATH); ln -sf $$file-$(PKG_VERSION).so $$file.so; \