]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Add missing pthread library for server 409/head
authorAdam Majer <amajer@suse.de>
Tue, 22 May 2018 07:43:21 +0000 (09:43 +0200)
committerAdam Majer <amajer@suse.de>
Tue, 22 May 2018 07:43:21 +0000 (09:43 +0200)
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'

server/Makefile.am

index 2a6a4c2d920bdad6d99d8710f9c755d6fd530966..009fe41429a5d78a3e86e590bd43a9cc06791ec2 100644 (file)
@@ -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