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!

llvm-svn: 109385
This commit is contained in:
Nick Lewycky 2010-07-25 22:33:04 +00:00
parent f5c4b49278
commit a3f7dcd069
1 changed files with 1 additions and 1 deletions

View 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