when making bytecode modules, link as library
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 25 Feb 2008 22:41:55 +0000 (22:41 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 25 Feb 2008 22:41:55 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47574 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 0367874b2af60d3636d6cd3b5f899349e7eff9b1..7a33033d1cb2a1cb1c85257c420af2d643a857d7 100644 (file)
@@ -728,7 +728,7 @@ $(warning Modules require llvm-gcc but no llvm-gcc is available ****)
 else
 
 Module     := $(LibDir)/$(MODULE_NAME).bc
-LinkModule := $(LLVMLD) -L$(CFERuntimeLibDir)
+LinkModule := $(LLVMLD) -L$(CFERuntimeLibDir) -r
 
 
 ifdef EXPORTED_SYMBOL_FILE