[ovs-dev] [PATCH 2/2] tests: Link test-multipath with libm.

Andrew Evans aevans at nicira.com
Tue Apr 12 18:03:49 UTC 2011

On 4/12/11 10:00 AM, Ben Pfaff wrote:
> 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?

Ben noticed that I was running configure with -Werror set in CFLAGS.
This breaks configure's library checks.

Patch retracted.

More information about the dev mailing list