diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-12-08 01:48:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-08 01:48:05 +0000 |
commit | 7bc0f27329f790790f3f4e09f97030667f0e19c6 (patch) | |
tree | b0ecf8120b0e5e40cd01c811fda4705ece9bcaae | |
parent | bf48816daf4a917e2b532f54862461125fab44d1 (diff) | |
download | external_llvm-7bc0f27329f790790f3f4e09f97030667f0e19c6.zip external_llvm-7bc0f27329f790790f3f4e09f97030667f0e19c6.tar.gz external_llvm-7bc0f27329f790790f3f4e09f97030667f0e19c6.tar.bz2 |
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
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 86730e7..6d2d694 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 |