[cfe-commits] [PATCH] Adjust some linker flags for FreeBSD

Dimitry Andric dimitry at andric.com
Sat Jul 28 09:35:48 PDT 2012


Hi,

Here are two patches to slightly adjust the flags passed to the linker
in FreeBSD.

The first patch (freebsd-link-flags-1.diff) only enables the
--hash-style=both and --enable-new-dtags flags when we're not statically
linking, similar to what FreeBSD's gcc does.  Also, it only enables the
--hash-style=both flag for the architectures that actually support it.

The second patch silences warnings about unused -g, -emit-llvm or -w
flags when linking, similar to the fix that was done for Linux in PR
8611.  It also corrects a pasto in the comment in
linuxtools::Link::ConstructJob() about this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-link-flags-1.diff
Type: text/x-diff
Size: 1164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120728/d9608864/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd-link-flags-2.diff
Type: text/x-diff
Size: 1212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120728/d9608864/attachment-0001.diff>


More information about the cfe-commits mailing list