build: Don't pass -avoid-version or -no-undefined on Darwin, they don't do
authorDaniel Dunbar <daniel@zuster.org>
Sat, 31 Jul 2010 21:32:56 +0000 (21:32 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 31 Jul 2010 21:32:56 +0000 (21:32 +0000)
anything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109957 91177308-0d34-0410-b5e6-96231b3b80d8

tools/edis/Makefile
tools/llvm-shlib/Makefile
tools/lto/Makefile

index ff0e1a57a384c6c6e95f4878179956374e3bebe4..92484bf0ac4ddcf060e9c7cbe75defd33e72b23a 100644 (file)
@@ -36,7 +36,6 @@ include $(LEVEL)/Makefile.common
 ifeq ($(HOST_OS),Darwin)
     # extra options to override libtool defaults 
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -avoid-version \
                          -Wl,-dead_strip
 
     ifdef EDIS_VERSION
@@ -48,7 +47,7 @@ ifeq ($(HOST_OS),Darwin)
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
     ifneq ($(DARWIN_VERS),8)
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                            -no-undefined -Wl,-install_name \
+                            -Wl,-install_name \
                             -Wl,"@rpath/lib$(LIBRARYNAME)$(SHLIBEXT)"
     endif
 endif
index ce29bf809e636bfacf94d01cae361b403a3c702b..899406c841603eaa1ba0c36b7339f78b15424315 100644 (file)
@@ -38,7 +38,6 @@ ifeq ($(HOST_OS),Darwin)
     LLVMLibsOptions    := $(LLVMLibsOptions) -all_load
     # extra options to override libtool defaults 
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -avoid-version \
                          -Wl,-dead_strip \
                          -Wl,-seg1addr -Wl,0xE0000000 
 
index f3fb79e6823624f4f5f4f8410d4e9fa2cbe0c04b..e157a4c48aca8c67654faf5af31cf811fa05e0c7 100644 (file)
@@ -41,7 +41,6 @@ ifeq ($(HOST_OS),Darwin)
     endif
     # extra options to override libtool defaults 
     LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                         -avoid-version \
                          -Wl,-dead_strip \
                          -Wl,-seg1addr -Wl,0xE0000000 
 
@@ -49,7 +48,7 @@ ifeq ($(HOST_OS),Darwin)
     DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
     ifneq ($(DARWIN_VERS),8)
        LLVMLibsOptions    := $(LLVMLibsOptions)  \
-                            -no-undefined -Wl,-install_name \
+                            -Wl,-install_name \
                             -Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
     endif
 endif