Don't hardcode libpthread
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 15:30:57 +0000 (17:30 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 3 Jun 2016 15:30:57 +0000 (17:30 +0200)
src/daemon/Makefile.am

index 2fe42ae..18aef36 100644 (file)
@@ -24,7 +24,7 @@ if BUILD_WITH_LIBRESOLV
 COMMON_LIBS += -lresolv
 endif
 if BUILD_WITH_LIBPTHREAD
-COMMON_LIBS += -lpthread
+COMMON_LIBS += $(PTHREAD_LIBS)
 endif
 if BUILD_WITH_LIBKSTAT
 COMMON_LIBS += -lkstat