aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-05-04 10:25:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-05-04 10:25:30 +0000
commit025ddd416fefc58576422f092fcb1f6a30c6a632 (patch)
tree9c7ed6bbe6f798218fc02154c20b6d4088d2fa3d /Makefile.rules
parent30403a0a6c6fe3e0a79aa476b833d27acfbbd037 (diff)
downloadexternal_llvm-025ddd416fefc58576422f092fcb1f6a30c6a632.zip
external_llvm-025ddd416fefc58576422f092fcb1f6a30c6a632.tar.gz
external_llvm-025ddd416fefc58576422f092fcb1f6a30c6a632.tar.bz2
Workaround libstdc++ bug when crosscompiling to mingw.
Patch by Jay Foad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 6658edc..ce31f22 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -361,6 +361,15 @@ ifeq ($(ARCH),Alpha)
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
#--------------------------------------------------------------------