mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
build: Don't force -flat_namespace or '-undefined suppress' on unsuspecting users of LLVM makefiles, these options really shouldn't be used on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf48816daf
commit
7bc0f27329
@ -507,8 +507,8 @@ ifeq ($(HOST_OS),Darwin)
|
||||
# Get "4" out of 10.4 for later pieces in the makefile.
|
||||
DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
|
||||
|
||||
SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined,suppress \
|
||||
-dynamiclib
|
||||
LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress
|
||||
SharedLinkOptions := -dynamiclib
|
||||
ifneq ($(ARCH),ARM)
|
||||
SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION)
|
||||
endif
|
||||
@ -1113,6 +1113,7 @@ endif
|
||||
ifdef LINK_LIBS_IN_SHARED
|
||||
ifdef LOADABLE_MODULE
|
||||
SharedLibKindMessage := "Loadable Module"
|
||||
SharedLinkOptions := $(LoadableModuleOptions) $(SharedLinkOptions)
|
||||
else
|
||||
SharedLibKindMessage := "Shared Library"
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user