Use llvm-config to determine what to link in
authorChris Lattner <sabre@nondot.org>
Mon, 4 Sep 2006 06:04:03 +0000 (06:04 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 4 Sep 2006 06:04:03 +0000 (06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30092 91177308-0d34-0410-b5e6-96231b3b80d8

examples/Fibonacci/Makefile
examples/HowToUseJIT/Makefile
examples/ModuleMaker/Makefile
examples/ParallelJIT/Makefile

index b63777eb295eae02d3d67963eec1a154c1198b53..5010cb4b9787cde04446e7b75db925f8ca16502a 100644 (file)
@@ -11,7 +11,7 @@ LEVEL = ../..
 TOOLNAME = Fibonacci
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+# Link in JIT support
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common
index 67fdd8611144a8d47ff6770cdc3cc1472c0025cf..fbacc2d5ca18657b975dc2f8a7b4129ed0011760 100644 (file)
@@ -10,7 +10,6 @@ LEVEL = ../..
 TOOLNAME = HowToUseJIT
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common
index e24e0df49d734a5397789b3936668d771130c376..f669bf2593043150c96dad90fc38e1c2253d094a 100644 (file)
@@ -9,6 +9,6 @@
 LEVEL=../..
 TOOLNAME=ModuleMaker
 EXAMPLE_TOOL = 1
-USEDLIBS= LLVMBCWriter.a LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
+LINK_COMPONENTS := bcwriter
 
 include $(LEVEL)/Makefile.common
index cb014a0082ad1612ed8d5bcbd453c157498ef6d2..f183da246e4fcd36718d2b054b6ce196dc3393c2 100644 (file)
@@ -10,8 +10,7 @@ LEVEL = ../..
 TOOLNAME = ParallelJIT
 EXAMPLE_TOOL = 1
 
-# Enable JIT support
-LLVMLIBS := JIT
+LINK_COMPONENTS := jit interpreter native
 
 include $(LEVEL)/Makefile.common