From: Adam Majer Date: Tue, 22 May 2018 07:43:21 +0000 (+0200) Subject: Add missing pthread library for server X-Git-Tag: v0.5.6~9^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F409%2Fhead;p=thirdparty%2Fsnapper.git Add missing pthread library for server While building snapper with Boost 1.67, the following error occurred, /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Client.o: undefined reference to symbol 'pthread_condattr_setclock@@GLIBC_2.3.3' /lib64/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [Makefile:440: snapperd] Error 1 make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/snapper-0.5.4/server' --- diff --git a/server/Makefile.am b/server/Makefile.am index 2a6a4c2d..009fe414 100644 --- a/server/Makefile.am +++ b/server/Makefile.am @@ -14,4 +14,4 @@ snapperd_SOURCES = \ Types.cc Types.h snapperd_LDADD = ../snapper/libsnapper.la ../dbus/libdbus.la -lrt -snapperd_LDFLAGS = -lboost_system -lboost_thread +snapperd_LDFLAGS = -lboost_system -lboost_thread -lpthread