GNOME Bugzilla – Bug 685678
Tests need to link with -lm
Last modified: 2012-10-12 20:13:17 UTC
rsvg-size-callback.c uses the floor function, but when it's built into libtest-utils, it's not linked with -lm. This causes a build failure when using --as-needed: CCLD rsvg-test /gar/bin/ld: ../tests/.libs/libtest-utils.a(rsvg-size-callback.o): undefined ref erence to symbol 'floor@@GLIBC_2.2.5' /gar/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /gar/lib/libm.so so tr y adding it to the linker command line /gar/lib/libm.so: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status
Created attachment 226001 [details] [review] Use $(LIBM) as in the main Makefile.am