summaryrefslogtreecommitdiff
path: root/package/libpthread-stubs
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:24 +0200
commit87c0185bf492767c4439f66f65398eb0ed3bda34 (patch)
tree3c3255e6fab49050a3314ea797463d56190d57be /package/libpthread-stubs
parentdfd37d10510d013fc7c49ecb42d1b75c14be4594 (diff)
fix some packages, when static build is choosen
Diffstat (limited to 'package/libpthread-stubs')
-rw-r--r--package/libpthread-stubs/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/libpthread-stubs/Makefile b/package/libpthread-stubs/Makefile
index cd4834663..c3d68668b 100644
--- a/package/libpthread-stubs/Makefile
+++ b/package/libpthread-stubs/Makefile
@@ -22,6 +22,10 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call HOST_template,LIBPTHREAD_STUBS,libpthread-stubs,$(PKG_VERSION)-${PKG_RELEASE}))
$(eval $(call PKG_template,LIBPTHREAD_STUBS,libpthread-stubs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
+TARGET_LDFLAGS+= -pthread
+endif
+
HOST_STYLE:= auto
include ${TOPDIR}/mk/host-bottom.mk