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

Robert Watson robert at fledge.watson.org
Wed Nov 18 06:48:29 PST 2009


On Wed, 18 Nov 2009, Mario Schwalbe wrote:

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

Could you confirm that this doesn't create an unnecessary libm dependency for 
libdispatch itself?

Robert N M Watson
Computer Laboratory
University of Cambridge

>
> ciao,
> Mario
>
> 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.
> _______________________________________________
> libdispatch-dev mailing list
> libdispatch-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/libdispatch-dev
>



More information about the libdispatch-dev mailing list