diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-07-25 22:33:04 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-07-25 22:33:04 +0000 |
commit | 47c424226fce0d2a030b00965249d00528d21f62 (patch) | |
tree | d5cc2b5465ca7da7f19fce4b6f17c4c7145d6198 /Makefile.rules | |
parent | e28ed16d2507633893269670d289006f3e0b351e (diff) | |
download | llvm-47c424226fce0d2a030b00965249d00528d21f62.tar.gz llvm-47c424226fce0d2a030b00965249d00528d21f62.tar.bz2 llvm-47c424226fce0d2a030b00965249d00528d21f62.tar.xz |
Don't pass -export-dynamic to the linker on Cygwin and MinGW. These platforms
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 44b8328f42..4b46e1c93e 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 |