[llvm-commits] [llvm-gcc-4.2] r73577 - /llvm-gcc-4.2/trunk/gcc/Makefile.in
Chris Lattner
sabre at nondot.org
Tue Jun 16 15:55:58 PDT 2009
Author: lattner
Date: Tue Jun 16 17:55:58 2009
New Revision: 73577
URL: http://llvm.org/viewvc/llvm-project?rev=73577&view=rev
Log:
second attempt to get arm/ppc/x86 targets linked into the
apple-specific libllvmgcc.dylib.
Modified:
llvm-gcc-4.2/trunk/gcc/Makefile.in
Modified: llvm-gcc-4.2/trunk/gcc/Makefile.in
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/Makefile.in?rev=73577&r1=73576&r2=73577&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/Makefile.in (original)
+++ llvm-gcc-4.2/trunk/gcc/Makefile.in Tue Jun 16 17:55:58 2009
@@ -1170,6 +1170,15 @@
# See below for more details.
ifdef BUILD_LLVM_INTO_A_DYLIB
LLVMTARGETOBJ := $(sort $(LLVMTARGETOBJ) x86 powerpc arm)
+
+
+## Target symbols to force linking. This is to ensure that the code generators
+## and asm printers actually get linked into libllvmgcc<stage>.dylib.
+LLVMTARGETSYMBOLS := \
+ __ZN4llvm19InitializeARMTargetEv __ZN4llvm23InitializeARMAsmPrinterEv \
+ __ZN4llvm23InitializePowerPCTargetEv __ZN4llvm27InitializePowerPCAsmPrinterEv\
+ __ZN4llvm19InitializeX86TargetEv __ZN4llvm23InitializeX86AsmPrinterEv \
+
endif
# We use llvm-config to determine the libraries that we need to link in our
@@ -1232,7 +1241,8 @@
$(CXX) $(DYLIB_COMPILE_FLAGS) $(INCLUDES) -o $@ \
$< $(LLVMLIBFILES) -dynamiclib -single_module \
-compatibility_version 1.0.0 -current_version 1.0.0 \
- -install_name @executable_path/$@
+ -install_name @executable_path/$@ \
+ $(patsubst %,-u %,$(LLVMTARGETSYMBOLS))
LLVMBACKENDFILES := libllvmgcc$(LLVM_STAGE).dylib
More information about the llvm-commits
mailing list