diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-15 20:54:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-15 20:54:25 +0000 |
commit | b16b53b181939fa6112498a00005d1df40d6de86 (patch) | |
tree | 9478ccad505c974ebf512e2012461ceeb8b2e0b3 /tools/lto/Makefile | |
parent | f27733f418f9b75c7f1feeab715accc3698ba12b (diff) | |
download | llvm-b16b53b181939fa6112498a00005d1df40d6de86.tar.gz llvm-b16b53b181939fa6112498a00005d1df40d6de86.tar.bz2 llvm-b16b53b181939fa6112498a00005d1df40d6de86.tar.xz |
Generalize the EXPORTED_SYMBOL_FILE concept in the Makefiles to work with
native linking export files, including running sed to prepend underscores
on darwin, and make use of it in libLTO and libEnhancedDisassembly.
Remove the leading underscores from library export files so that they
work with the new EXPORTED_SYMBOL_FILE support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/Makefile')
-rw-r--r-- | tools/lto/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lto/Makefile b/tools/lto/Makefile index 3120aa52c9..fe01ac1886 100644 --- a/tools/lto/Makefile +++ b/tools/lto/Makefile @@ -10,6 +10,8 @@ LEVEL = ../.. LIBRARYNAME = LTO +EXPORTED_SYMBOL_FILE = lto.exports + # Include this here so we can get the configuration of the targets # that have been configured for construction. We have to do this # early so we can set up LINK_COMPONENTS before including Makefile.rules @@ -32,7 +34,6 @@ ifeq ($(HOST_OS),Darwin) # extra options to override libtool defaults LLVMLibsOptions := $(LLVMLibsOptions) \ -avoid-version \ - -Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \ -Wl,-dead_strip \ -Wl,-seg1addr -Wl,0xE0000000 |