Commit 79afe8e7 authored by Arnout Vandecappelle's avatar Arnout Vandecappelle Committed by Peter Korsgaard
Browse files

xlib_libpthread-stubs: needs -pthread when linking statically

parent 6fb546ca
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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))