Le Friday 23 November 2007 02:43:34, vous avez écrit : > The fix in this case is to simply fix the linking order so that the > libraries given to the linker are all after the object files and the static > archives." (...) > There's a good documentation where the above statement is taken there: >   http://www.gentoo.org/proj/en/qa/asneeded.xml > > What do you think ? Well, I'm quite confused with this... After spending some time finding out how to change those arguments order, I ended up with a patch that orders them just perfectly, so that the following is passed: gcc <-I options> -Wl,--as-needed -o object This is exactly what's refered as a good practice in the above link, but still I got my linking wrong... Ha, and of course this option works on a simple hello_world with the same gcc... Another nice possibility would be to be able to filter out -l values, since they are automagically added, we don't have control over them... Romain