Commit 269b3f3d authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

build: Make -lpthread take preference over -pthread

This makes libpoppler link to pthreads and fixes runtime error due to
unresolved pthread symbols when running some of the utils and tests.
parent 40f857d2
......@@ -123,7 +123,7 @@ fi
# which indicates that we try without any flags at all, and "pthread-config"
# which is a program returning the flags for the Pth emulation library.
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
ax_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:
......
......@@ -52,7 +52,8 @@ gtk_test_LDADD = \
$(top_builddir)/poppler/libpoppler.la \
$(top_builddir)/glib/libpoppler-glib.la \
$(CAIRO_LIBS) \
$(GTK_TEST_LIBS)
$(GTK_TEST_LIBS) \
$(PTHREAD_LIBS)
pdf_inspector_SOURCES = \
......@@ -64,7 +65,8 @@ pdf_inspector_LDADD = \
$(CAIRO_LIBS) \
$(FREETYPE_LIBS) \
$(GTK_TEST_LIBS) \
$(X_EXTRA_LIBS)
$(X_EXTRA_LIBS) \
$(PTHREAD_LIBS)
perf_test_SOURCES = \
perf-test.cc \
......
......@@ -35,7 +35,9 @@ endif
pdftocairo_LDADD = \
$(top_builddir)/poppler/libpoppler-cairo.la \
$(LDADD) $(PDFTOCAIRO_LIBS)
$(LDADD) \
$(PDFTOCAIRO_LIBS) \
$(PTHREAD_LIBS)
pdftocairo_binary = pdftocairo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment