From 33231a855f0e3d2a14e5e2fcb921c6fc773ae6cf Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Sep 2018 11:06:49 -0400 Subject: [PATCH] Fix pthread fail for real Using a hack... --- test/api/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/api/Makefile.am b/test/api/Makefile.am index 20057aa22..02e878034 100644 --- a/test/api/Makefile.am +++ b/test/api/Makefile.am @@ -81,7 +81,9 @@ if HAVE_FREETYPE TEST_PROGS += test-multithread test_multithread_CFLAGS = $(CFLAGS) $(PTHREAD_CFLAGS) $(FREETYPE_CFLAGS) test_multithread_LDADD = $(LDADD) $(PTHREAD_LIBS) $(FREETYPE_LIBS) -test_multithread_LINK = $(LINK) $(test_multithread_LDADD) +# The auto-generated link rule somehow includes CFLAGS as well. Without +# it, pthread link fails, because, who knows why, $PTHREAD_LIBS is empty. +test_multithread_LINK = $(LINK) $(PTHREAD_CFLAGS) endif endif