[PATCH] Fix clang linking if flags contain '-mllvm $arg'.

Johannes Obermayr <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Fixes:
http://llvm.org/bugs/show_bug.cgi?id=14716
---
 build-aux/ltmain.in |   15 +++++++++++++++
 1 Datei geändert, 15 Zeilen hinzugefügt(+)

diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 9e790db..acf454d 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -4723,6 +4723,16 @@ func_mode_link ()
 	  prev=
 	  continue
 	  ;;
+	mllvm)
+#	  Currently none args known to be supported by clang linker
+#	  if test true && echo "$(CC)" | grep -e "clang" >/dev/null; then
+#	    compile_command+=" -mllvm $arg"
+#	    finalize_command+=" -mllvm $arg"
+#	    compile_command+=" -mllvm $arg"
+#	  fi
+	  prev=
+	  continue
+	  ;;
 	objectlist)
 	  if test -f "$arg"; then
 	    save_arg=$arg
@@ -5061,6 +5071,11 @@ func_mode_link ()
 	continue
 	;;
 
+      -mllvm)
+	prev=mllvm
+	continue
+	;;
+
       -module)
 	module=yes
 	continue
-- 
1.7.10.4
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.