libtool/build-aux
Brooks Moses d9a35fe9d3 libtool: Discard "-mllvm $arg" options when linking.
Clang accepts options of the form "-mllvm $arg", and passes the
argument as an option to LLVM.  These options caused problems
for Libtool when linking; in some cases, the -mllvm option is
passed through but the corresponding argument is dropped.  (See
for example http://llvm.org/bugs/show_bug.cgi?id=14716.)

This patch resolves the issue by explicitly matching -mllvm and
taking an argument.  Since Clang never uses LLVM for linking,
the matched "-mllvm $arg" option is irrelevant for the link
step, and we can simply discard it once we've recognized it.

Co-authored-by: Johannes Obermayr <johannesobermayr@gmx.de>
Copyright-paperwork-exempt: Yes
2013-10-09 12:32:48 -07:00
..
git-hooks syntax-check: fix violations and implement sc_old_style_quoting. 2012-10-22 00:01:13 +07:00
.gitignore bootstrap: move into local gl overrides directory. 2012-10-21 19:39:04 +07:00
edit-readme-alpha maint: update copyright notices to include 2013. 2013-01-02 00:34:06 +07:00
git-log-fix maint: normalise formatting of recent commit log entry. 2013-09-05 12:16:25 +07:00
ltmain.in libtool: Discard "-mllvm $arg" options when linking. 2013-10-09 12:32:48 -07:00