build: fixed a link order problem
authorAndrew Tridgell <tridge@samba.org>
Thu, 2 Feb 2012 01:36:44 +0000 (12:36 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 2 Feb 2012 05:54:42 +0000 (06:54 +0100)
commit0fdd6c7632a070fc3f6251f44c520fa324155a7d
treee1e5d8146d6ce192e1a93869cc0750cf6c6774e9
parente3dac4b61aadeced427001f823377c79e457b8dd
build: fixed a link order problem

this fixes a problem found by obnox where the -L path for CUPS was put
before the path to internal libraries. The install path for CUPS
happened to be the same as for a old system libtevent, which meant we
linked against the old tevent instead of the correct one from our
private library paths.

The problem was that we were adding the -L paths directly to the
ldflags. The waf core code (in ccroot.py) only adds more paths if they
are not there already. So by adding it in ldflags it was not added at
the end of the list. The fix is just to not do the -L processing in
wafsamba and let the waf core do it in the right order

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Feb  2 06:54:42 CET 2012 on sn-devel-104
buildtools/wafsamba/samba_autoconf.py