[llvm-commits] [llvm] r70849 - /llvm/trunk/Makefile.rules

Anton Korobeynikov asl at math.spbu.ru
Mon May 4 03:25:31 PDT 2009


Author: asl
Date: Mon May  4 05:25:30 2009
New Revision: 70849

URL: http://llvm.org/viewvc/llvm-project?rev=70849&view=rev
Log:
Workaround libstdc++ bug when crosscompiling to mingw.
Patch by Jay Foad!

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=70849&r1=70848&r2=70849&view=diff

==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Mon May  4 05:25:30 2009
@@ -361,6 +361,15 @@
   LD.Flags += -Wl,--no-relax
 endif
 
+ifeq ($(OS),MingW)
+  ifeq ($(LLVM_CROSS_COMPILING),1)
+    # Work around http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525016
+    ifdef TOOLNAME
+      LD.Flags += -Wl,--allow-multiple-definition
+    endif
+  endif
+endif
+
 #--------------------------------------------------------------------
 # Directory locations
 #--------------------------------------------------------------------





More information about the llvm-commits mailing list