File add-pthread-to-am_cflags.patch of Package wayland.2655

From 5a019e38a1316a31072a9cb6de8da4377f3cfad5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= <krh@bitplanet.net>
Date: Sat, 23 Nov 2013 12:24:26 -0800
Subject: Add -pthread to AM_CFLAGS to do the right thing when using threads

https://bugs.freedesktop.org/show_bug.cgi?id=71633

diff --git a/src/Makefile.am b/src/Makefile.am
index fb2df1c..15f44a5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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
 
-- 
cgit v0.10.2

openSUSE Build Service is sponsored by