summaryrefslogtreecommitdiff
path: root/tools/lto/Makefile
diff options
context:
space:
mode:
authorJohn Mosby <ojomojo@gmail.com>2009-07-02 00:10:23 +0000
committerJohn Mosby <ojomojo@gmail.com>2009-07-02 00:10:23 +0000
commit1bc1e6407f4015d0eb5d0ff815ddab6b1ba5e5f8 (patch)
treef2159c49ef82ce34125947453d93f7719797a24a /tools/lto/Makefile
parent07b0ec0927e145458b2e49598b1bbe32262cda6f (diff)
downloadllvm-1bc1e6407f4015d0eb5d0ff815ddab6b1ba5e5f8.tar.gz
llvm-1bc1e6407f4015d0eb5d0ff815ddab6b1ba5e5f8.tar.bz2
llvm-1bc1e6407f4015d0eb5d0ff815ddab6b1ba5e5f8.tar.xz
fix ld error with -no-undefined switch, which is undefined on darwin8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/Makefile')
-rw-r--r--tools/lto/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile
index de885d9845..c8ad9fe08f 100644
--- a/tools/lto/Makefile
+++ b/tools/lto/Makefile
@@ -31,7 +31,7 @@ ifeq ($(OS),Darwin)
endif
# extra options to override libtool defaults
LLVMLibsOptions := $(LLVMLibsOptions) \
- -no-undefined -avoid-version \
+ -avoid-version \
-Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \
-Wl,-dead_strip \
-Wl,-seg1addr -Wl,0xE0000000
@@ -40,7 +40,7 @@ ifeq ($(OS),Darwin)
DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
ifneq ($(DARWIN_VERS),8)
LLVMLibsOptions := $(LLVMLibsOptions) \
- -Wl,-install_name \
+ -no-undefined -Wl,-install_name \
-Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
endif
endif