On Fri, Sep 20, 2013 at 03:33:11PM +0800, Aron Xu wrote: > > Here's how to reproduce it: > > > > $ echo 'main(){}' > test.c > > $ gcc -o /dev/null test.c `pkg-config --cflags --libs libxslt` > > > > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: > > error: undefined reference to 'fmod' > > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: > > error: undefined reference to 'pow' > > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libxslt.so: > > error: undefined reference to 'floor' > > collect2: error: ld returned 1 exit status > > But I got no problem running this test case, even passing > -Wl,--no-add-needed does not make any difference.
Are you using the gold linker? With the latest binutils package you have to add -fuse-ld=gold to the gcc command line. Berto -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org