diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-22 10:19:46 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-22 10:36:50 +0200 |
commit | b4584ff6c433551f9b633d3e0c6d00380119fa89 (patch) | |
tree | 39e50fbf850f2c5ccb68632b6919e2c2bd99efda | |
parent | 0808f6860111ef54e80a2865029760e063c29755 (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.am | 1 | ||||
-rw-r--r-- | tests/Makefile.am | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b18c1cea..a63281fa 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 77760f31..a9fc9ddf 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 |