[PATCH] GNU LD option export-dynamic can accept single dash flag
Davide Italiano
davide at freebsd.org
Sun Jan 18 14:28:27 PST 2015
Hi rui314, rafaelauler,
Some Makefiles on FreeBSD use -export-dynamic rather than --export-dynamic.
We're gonna patch them in the FreeBSD tree, but as long as this is supposed to be a drop-in replacement for GNU ld, I think supporting single dash flag is fine.
http://reviews.llvm.org/D7044
Files:
lib/Driver/GnuLdOptions.td
Index: lib/Driver/GnuLdOptions.td
===================================================================
--- lib/Driver/GnuLdOptions.td
+++ lib/Driver/GnuLdOptions.td
@@ -150,7 +150,7 @@
def rpath_link : Separate<["-"], "rpath-link">,
HelpText<"Specifies the first set of directories to search">,
Group<grp_dynlibexec>;
-def export_dynamic : Flag<["--"], "export-dynamic">,
+def export_dynamic : Flag<["-", "--"], "export-dynamic">,
HelpText<"Add all symbols to the dynamic symbol table"
" when creating executables">,
Group<grp_main>;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7044.18361.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150118/2ca96cc6/attachment.bin>
More information about the llvm-commits
mailing list