Skip to content

Commit

Permalink
Fix build on Cygwin.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65922 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nlewycky committed Mar 3, 2009
1 parent 0f8b53f commit 1c08c0e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ ifdef SHARED_LIBRARY
endif

ifeq ($(ENABLE_PIC),1)
ifeq ($(LLVM_ON_WIN32),1)
ifeq ($(OS), $(filter $(OS), Cygwin MingW))
# Nothing. Win32 defaults to PIC and warns when given -fPIC
else
ifeq ($(OS),Darwin)
Expand Down Expand Up @@ -471,7 +471,13 @@ ifeq ($(OS),Darwin)
-mmacosx-version-min=$(DARWIN_VERSION)
CompileCommonOpts += -mmacosx-version-min=$(DARWIN_VERSION)
else
SharedLinkOptions=-shared
ifeq ($(OS),Cygwin)
SharedLinkOptions=-shared -nostdlib -Wl,--export-all-symbols \
-Wl,--enable-auto-import -Wl,--enable-auto-image-base \
-Wl,--enable-runtime-pseudo-relocs
else
SharedLinkOptions=-shared
endif
endif

#----------------------------------------------------------
Expand Down

0 comments on commit 1c08c0e

Please sign in to comment.