On Mon, Apr 11, 2011 at 06:40:09PM -0700, Andrew Evans wrote:
> @@ -226,7 +226,7 @@ tests_test_lockfile_LDADD = lib/libopenvswitch.a
>  
>  noinst_PROGRAMS += tests/test-multipath
>  tests_test_multipath_SOURCES = tests/test-multipath.c
> -tests_test_multipath_LDADD = lib/libopenvswitch.a
> +tests_test_multipath_LDADD = lib/libopenvswitch.a -lm

Even without this patch I see -lm in the linker command:

    gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith
    -Wdeclaration-after-statement -Wformat-security -Wswitch-enum
    -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast
    -Wcast-align -Wstrict-prototypes -Wold-style-definition
    -Wmissing-prototypes -Wmissing-field-initializers
    -Wno-override-init -g -O2 -export-dynamic -o tests/test-multipath
    tests/test-multipath.o lib/libopenvswitch.a -lrt -lm

That's because it's in LIBS due to this configure check:

    AC_SEARCH_LIBS([pow], [m])

Why isn't -lm in LIBS on Gentoo?
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to