[PATCH] Link libraries by default with -as-needed flag.

Andreas Schneider mail at cynapses.org
Wed Aug 26 04:36:18 MDT 2009


With this flag, the linker checks if the needed symbols are provided by
the library. If you add a library and no function is used from it, the 
linker skips it. This requires a correct linking order, see            

http://blog.cynapses.org/2009/08/24/undefined-reference-to-function/

The as-needed flag is set in several distributions by default now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Link-libraries-by-default-with-as-needed-flag.patch
Type: text/x-patch
Size: 1964 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090826/7d70d99d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20090826/7d70d99d/attachment.pgp>


More information about the samba-technical mailing list