mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix build on Cygwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f8b53f19d
commit
1c08c0e128
@ -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)
|
||||
@ -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
|
||||
|
||||
#----------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user