wafsamba: filter out standard library paths from RPATH and LIBPATH
authorMichael Adam <obnox@samba.org>
Thu, 18 Dec 2014 20:36:07 +0000 (21:36 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 8 Jan 2015 22:38:07 +0000 (23:38 +0100)
commit707dc16987c982b75c83cd5b06d4373c23e777e0
tree89df72d7df059c190c953660d50a0b9f60b7e3a1
parentdc808a466ef835535a3d4bb87f19316eeff1c567
wafsamba: filter out standard library paths from RPATH and LIBPATH

We should avoid passing them explicitly to the compiler/linker.

We ask the compiler with the '-print-search-dirs' argument
or fallback to [ '/usr/lib', '/usr/lib64' ].

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
buildtools/wafsamba/samba_conftests.py
buildtools/wafsamba/samba_optimisation.py
buildtools/wafsamba/wscript