[llvm-commits] [llvm-gcc-4.2] r73554 - /llvm-gcc-4.2/trunk/gcc/Makefile.in
Chris Lattner
sabre at nondot.org
Tue Jun 16 14:33:20 PDT 2009
Author: lattner
Date: Tue Jun 16 16:33:20 2009
New Revision: 73554
URL: http://llvm.org/viewvc/llvm-project?rev=73554&view=rev
Log:
When building the libllvmgcc*.dylib for an apple-style build, make sure to use
-u<magic symbol> to pull in the x86/ppc/arm targets and asmprinters.
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=73554&r1=73553&r2=73554&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/Makefile.in (original)
+++ llvm-gcc-4.2/trunk/gcc/Makefile.in Tue Jun 16 16:33:20 2009
@@ -1170,6 +1170,7 @@
# See below for more details.
ifdef BUILD_LLVM_INTO_A_DYLIB
LLVMTARGETOBJ := $(sort $(LLVMTARGETOBJ) x86 powerpc arm)
+LLVMTARGETNAME := $(sort X86 PowerPC ARM)
endif
# We use llvm-config to determine the libraries that we need to link in our
@@ -1232,7 +1233,9 @@
$(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 __ZN4llvm19Initialize%TargetEv,$(LLVMTARGETNAME)) \
+ $(patsubst %,-u __ZN4llvm19Initialize%AsmPrinterEv,$(LLVMTARGETNAME)) \
LLVMBACKENDFILES := libllvmgcc$(LLVM_STAGE).dylib
More information about the llvm-commits
mailing list