aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:19:46 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:36:50 +0200
commitb4584ff6c433551f9b633d3e0c6d00380119fa89 (patch)
tree39e50fbf850f2c5ccb68632b6919e2c2bd99efda
parent0808f6860111ef54e80a2865029760e063c29755 (diff)
build: Add -lrt to AM_LDFLAGS
This is needed to link programs using clock_gettime and related functions when compiling with older glibc versions. This should fix the Jenkins build. Nevertheless fixing this in configure.ac were probably nicer. Sponsored-by: On-Waves ehf
-rw-r--r--src/Makefile.am1
-rw-r--r--tests/Makefile.am1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b18c1ce..a63281f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,6 +25,7 @@ AM_CPPFLAGS += -DENABLE_SYSMODSP
endif
AM_CXXFLAGS = -Wall -ldl -pthread
+AM_LDFLAGS = -lrt
noinst_LTLIBRARIES = libgprs.la
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 77760f3..a9fc9dd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOGSM_CFLAGS) -I$(top_srcdir)/src/
+AM_LDFLAGS = -lrt
check_PROGRAMS = rlcmac/RLCMACTest alloc/AllocTest tbf/TbfTest types/TypesTest ms/MsTest llist/LListTest
noinst_PROGRAMS = emu/pcu_emu