GNOME Bugzilla – Bug 343603
need to add -lm to build tests/examples/level
Last modified: 2006-06-09 18:37:45 UTC
Please describe the problem: When i try to build the good plugins the linking of tests/examples/level/level-example fails unless I add -lm to level_example_LDADD in tests/examples/level/Makefile.am. This is caused by the use of the pow() function. I use uClibc, but I cannot see why this is not needed with glibc too, since it has the pow() function in the math library as well. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Maybe you've built the GStreamer core with --disable-loadsave and --disable-registry (so that the libxml2 stuff isn't dragged in by GST_LIBS, which is where the -lm comes from for me)? In any case, can't hurt to add: 2006-06-09 Tim-Philipp Müller <tim at centricular dot net> * tests/examples/level/Makefile.am: Add -lm to LIBS for pow() function, don't assume one of our dependencies (such as libxml-2.0) drags it in automatically (#343603).