[llvm-commits] [llvm] r65922 - /llvm/trunk/Makefile.rules
Nick Lewycky
nicholas at mxc.ca
Mon Mar 2 19:36:51 PST 2009
Author: nicholas
Date: Mon Mar 2 21:36:50 2009
New Revision: 65922
URL: http://llvm.org/viewvc/llvm-project?rev=65922&view=rev
Log:
Fix build on Cygwin.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=65922&r1=65921&r2=65922&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Mon Mar 2 21:36:50 2009
@@ -313,7 +313,7 @@
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)
@@ -471,7 +471,13 @@
-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
#----------------------------------------------------------
More information about the llvm-commits
mailing list