[libdispatch-dev] [PATCH 2/4] check whether to add -lm for testing to compile

Mario Schwalbe schwalbe at inf.tu-dresden.de
Wed Nov 18 06:10:01 PST 2009


Linux needs -lm in order to compile the testing directory due to fabs().


Index: configure.ac
--- configure.ac        (Revision 171)
+++ configure.ac        (Arbeitskopie)
@@ -138,6 +138,7 @@
 AC_SEARCH_LIBS(clock_gettime, rt)
 AC_SEARCH_LIBS(pthread_create, pthread)
+AC_SEARCH_LIBS(fabs, m)

 # Prefer native kqueue(2); otherwise use libkqueue if present.

More information about the libdispatch-dev mailing list