Don't pass -export-dynamic to the linker on Cygwin and MinGW. These platforms
authorNick Lewycky <nicholas@mxc.ca>
Sun, 25 Jul 2010 22:33:04 +0000 (22:33 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 25 Jul 2010 22:33:04 +0000 (22:33 +0000)
accept the flag and do nothing but warn about it, cleverly bypassing our
configure-based detection system. Patch by Takumi Nakamura!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109385 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 44b8328f422b2a721aa018984402f7827089e2d8..4b46e1c93ed5c7cf61952be522fde0c36fae1d45 100644 (file)
@@ -618,7 +618,7 @@ ifndef KEEP_SYMBOLS
 endif
 
 # Adjust linker flags for building an executable
-ifneq ($(HOST_OS),Darwin)
+ifneq ($(HOST_OS), $(filter $(HOST_OS), Darwin Cygwin MingW))
 ifdef TOOLNAME
   LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib'
   ifdef EXAMPLE_TOOL