From: Arnout Vandecappelle Date: Sat, 9 Nov 2013 00:21:20 +0000 (+0100) Subject: xlib_libpthread-stubs: needs -pthread when linking statically X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79afe8e70ff806eaaebc263bcd00ebcc88960493;p=buildroot.git xlib_libpthread-stubs: needs -pthread when linking statically Fixes e.g. http://autobuild.buildroot.net/results/1eaa694263b74313b0c90c510abcb11d490a3773/ Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Peter Korsgaard --- diff --git a/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk b/package/x11r7/xlib_libpthread-stubs/xlib_libpthread-stubs.mk index 5ea02e9605..6343691564 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))