Small thinko in testing for clock_gettime

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Pete Zaitcev zaitcev at kotori.zaitcev.us
Tue Nov 6 05:44:08 UTC 2012


This appears to be not tested with autoconf (cmake works). The assignment
to $LIBS changes nothing, which cannot possibly be the intent.

---

cc-ing to original patch author and sign-off

diff --git a/configure.ac b/configure.ac
index 1b94701..c760787 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ dnl libmath (for rtl_fm)
 AC_CHECK_LIB(m, atan2, [LIBS="$LIBS -lm"])
 
 dnl librealtime (for rtl_test)
-AC_CHECK_LIB(rt, clock_gettime, [LIBS="$LIBS"])
+AC_CHECK_LIB(rt, clock_gettime, [LIBS="$LIBS -lrt"])
 
 # The following test is taken from WebKit's webkit.m4
 saved_CFLAGS="$CFLAGS"




More information about the osmocom-sdr mailing list