Add -pthread to AM_CFLAGS to do the right thing when using threads
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 23 Nov 2013 20:24:26 +0000 (12:24 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 23 Nov 2013 20:24:43 +0000 (12:24 -0800)
https://bugs.freedesktop.org/show_bug.cgi?id=71633

src/Makefile.am

index fb2df1c..15f44a5 100644 (file)
@@ -36,7 +36,7 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = wayland-client.pc wayland-server.pc
 
 AM_CPPFLAGS = $(FFI_CFLAGS)
-AM_CFLAGS = $(GCC_CFLAGS)
+AM_CFLAGS = $(GCC_CFLAGS) -pthread
 
 protocoldir = $(top_srcdir)/protocol