r4813: this is a temporary solution to a link problem we have on some
commit190b90e37d6ebf7228bdd5649e2b266f8867ac72
authorAndrew Tridgell <tridge@samba.org>
Tue, 18 Jan 2005 03:27:12 +0000 (18 03:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:58 +0000 (10 13:08 -0500)
tree5e5f834ca596c9a154dc2555597604a9a7ab0dd3
parentb3416c6de44553f408cede77da720f8ebc85d0d6
r4813: this is a temporary solution to a link problem we have on some
platforms. The problem is that some loaders (for example the IRIX 6.5
machine us4 in the build farm) must have libs listed after object
files that depend on them on the link line. If you put the libs first
then all the symbols in the libs remain unresolved.

I think the correct fix for this is to separate xxx_LINK_LIBS out from
the current xxx_LINK_FLAGS, and use xxx_LINK_FLAGS followed by
xxx_LINK_LIST followed by xxx_LINK_LIBS. I'm hoping metze or jelmer,
as our build wizards, might take a look at this when they get time.

This interim fix should work fine, but its rather ugly, as it lists
the flags and libs twice in each link.
(This used to be commit db7d43fbb95748c85316b41ad3dc4eb967ed8a08)
source4/build/smb_build/makefile.pm