summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Vandecappelle <arnout@mind.be>2013-11-09 00:21:20 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-11-10 22:45:15 (GMT)
commit79afe8e70ff806eaaebc263bcd00ebcc88960493 (patch)
treeee6bd726273fc32ade382083d54172a51f297c65
parent6fb546ca41955335a6fa8ed403e616ae2ff31a29 (diff)
downloadbuildroot-79afe8e70ff806eaaebc263bcd00ebcc88960493.tar.gz
buildroot-79afe8e70ff806eaaebc263bcd00ebcc88960493.tar.bz2
xlib_libpthread-stubs: needs -pthread when linking statically
Fixes e.g. http://autobuild.buildroot.net/results/1eaa694263b74313b0c90c510abcb11d490a3773/ Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk b/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk
index 5ea02e9..6343691 100644
--- a/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk
+++ b/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk
@@ -12,5 +12,9 @@ XLIB_LIBPTHREAD_STUBS_LICENSE_FILES = COPYING
XLIB_LIBPTHREAD_STUBS_INSTALL_STAGING = YES
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+XLIB_LIBPTHREAD_STUBS_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread"
+endif
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))