forked from OSchip/llvm-project
build: Don't force -flat_namespace or '-undefined suppress' on unsuspecting users of LLVM makefiles, these options really shouldn't be used on Darwin.
llvm-svn: 121223
This commit is contained in:
parent
00e7a8459b
commit
21e71e948b
|
@ -507,8 +507,8 @@ ifeq ($(HOST_OS),Darwin)
|
||||||
# Get "4" out of 10.4 for later pieces in the makefile.
|
# 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/')
|
DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
|
||||||
|
|
||||||
SharedLinkOptions=-Wl,-flat_namespace -Wl,-undefined,suppress \
|
LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress
|
||||||
-dynamiclib
|
SharedLinkOptions := -dynamiclib
|
||||||
ifneq ($(ARCH),ARM)
|
ifneq ($(ARCH),ARM)
|
||||||
SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION)
|
SharedLinkOptions += -mmacosx-version-min=$(DARWIN_VERSION)
|
||||||
endif
|
endif
|
||||||
|
@ -1113,6 +1113,7 @@ endif
|
||||||
ifdef LINK_LIBS_IN_SHARED
|
ifdef LINK_LIBS_IN_SHARED
|
||||||
ifdef LOADABLE_MODULE
|
ifdef LOADABLE_MODULE
|
||||||
SharedLibKindMessage := "Loadable Module"
|
SharedLibKindMessage := "Loadable Module"
|
||||||
|
SharedLinkOptions := $(LoadableModuleOptions) $(SharedLinkOptions)
|
||||||
else
|
else
|
||||||
SharedLibKindMessage := "Shared Library"
|
SharedLibKindMessage := "Shared Library"
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue