[Pixman] [PATCH] Fix linking issues when HAVE_FEENABLEEXCEPT is set.
Soeren Sandmann
sandmann at daimi.au.dk
Mon Dec 20 06:59:46 PST 2010
Cyril Brulebois <kibi at debian.org> writes:
> All objects using test/util.c fail to link:
> | CCLD region-test
> | /usr/bin/ld: utils.o: in function enable_fp_exceptions:utils.c(.text+0x939): error: undefined reference to 'feenableexcept'
>
> There's indeed no explicit dependency on -lm, and if HAVE_FEENABLEEXCEPT
> happens to be set, test/util.c uses feenableexcept(), which is nowhere
> to be found while linking.
>
> Fix this by adding -lm to TEST_LDADD, although two alternatives could be
> thought of:
> - Only specifying -lm for objects using util.c.
> - Introducing a conditional to add -lm only when configure detects
> have_feenableexcept=yes.
Pushed, thanks.
Soren
More information about the Pixman
mailing list