From 8bc3846ebe4fdd935326e84926c3556a903da940 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 2 Oct 2012 11:57:54 -0300 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 8693752d..b05d4f02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -88,7 +88,7 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) $(gweb_sources) \ src/ippool.c src/bridge.c src/nat.c src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \ - @XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl + @XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl -lrt src_connmand_LDFLAGS = -Wl,--export-dynamic \ -Wl,--version-script=$(srcdir)/src/connman.ver -- cgit v1.2.3