build: Fix missing -lrt for clock_gettime()
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 2 Oct 2012 14:57:54 +0000 (11:57 -0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 3 Oct 2012 08:22:52 +0000 (11:22 +0300)
commit8bc3846ebe4fdd935326e84926c3556a903da940
treebebbe5424b374cabf6285c1033437eb0d1f27fc8
parentc4b5683576c11b2ae8e54da0e1bc03b6c1c67998
build: Fix missing -lrt for clock_gettime()

librt is needed for using clock_gettime():

/usr/bin/ld: src/ntp.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2.5'
/usr/bin/ld: note: 'clock_gettime@@GLIBC_2.2.5' is defined in DSO /usr/lib/librt.so.1 so try adding it to the linker command line
/usr/lib/librt.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Makefile.am