felix-lang/fbuild — Issue #6: linker behavior changed in Debian Wheezy, Ubuntu 11.10 (Oneiric) and Fedora 13
Author: axeoth
Created: 2011-11-01 00:12:25+00:00
State: open

Specifically, for Debian:

http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html

By default, now the option --no-copy-dt-needed-entries is passed to the linker.

I assume this is the cause why now, building with fbuild fails on my project.

The cause is that "external_libs" are placed by fbuild *before* the "libs", and this is rather incorrect, as dependencies should be provided *after* the objects that require them (this is the behavior of ld linker).

In practice, usually "external_libs" are the basic dependencies for all the other built modules of the project, so the "external_libs" should pe placed the last in the command line.