On Thu, Jun 02, 2005 at 07:16:18AM +0100, Mike Hearn wrote:
Libs: $(foo) -lbar -lbaz
Where foo could be defined internally as either "" in the portable
upstream version or "--as-needed" in the downstream version.
Note that it would need to be
Libs: $(foo) -lbar -lbaz $(no_foo)
foo = --as-needed
no_foo = --no-as-needed
as the mere fact that you are linking against pkg-configed library xyz
doesn't imply all libraries must be linked with --as-needed.
Jakub