Fix pthread fail for real

Using a hack...
This commit is contained in:
Behdad Esfahbod 2018-09-28 11:06:49 -04:00
parent 8cb8209c91
commit 33231a855f
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ if HAVE_FREETYPE
TEST_PROGS += test-multithread TEST_PROGS += test-multithread
test_multithread_CFLAGS = $(CFLAGS) $(PTHREAD_CFLAGS) $(FREETYPE_CFLAGS) test_multithread_CFLAGS = $(CFLAGS) $(PTHREAD_CFLAGS) $(FREETYPE_CFLAGS)
test_multithread_LDADD = $(LDADD) $(PTHREAD_LIBS) $(FREETYPE_LIBS) 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
endif endif