aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2019-05-31 08:09:35 -0700
committerorbea <orbea@riseup.net>2019-05-31 08:38:50 -0700
commit2485a5c2749f636371b91c3f71c74d2d223d0020 (patch)
tree3bc193635eb44f64e8c47a3f4d202fed0c7bd8a6 /Makefile.am
parentlog: remove "%m" from format strings by using strerror(errno) (diff)
downloadwayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar.gz
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar.bz2
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar.lz
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar.xz
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.tar.zst
wayland-2485a5c2749f636371b91c3f71c74d2d223d0020.zip
Add a missing -pthread to fix compile with slibtool.
When compiling wayland with slibtool instead of GNU libtool it will fail building libtest_runner with an undefined reference to pthread_join@@GLIBC_2.2.5. This is because -pthread (Or -lpthread) is missing from display_test. If its added the build succeeds as expected with slibtool and continues to work with libtool. Its likely that libtool is hiding this failure by silently adding the missing flag which is not uncommon... Exposed in commit aa51a833eb9b3d8fb58a64ff685b249d65ec35b5. Fixes https://gitlab.freedesktop.org/wayland/wayland/issues/91 Signed-off-by: orbea <orbea@riseup.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a41f959..a0b11d5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -233,6 +233,7 @@ array_test_SOURCES = tests/array-test.c
array_test_LDADD = libtest-runner.la
client_test_SOURCES = tests/client-test.c
client_test_LDADD = libtest-runner.la
+display_test_CFLAGS = -pthread
display_test_SOURCES = tests/display-test.c
display_test_LDADD = libtest-runner.la
nodist_display_test_SOURCES = \