[llvm-commits] CVS: llvm/Makefile.rules

Reid Spencer reid at x10sys.com
Wed Apr 12 11:21:47 PDT 2006



Changes in directory llvm:

Makefile.rules updated: 1.361 -> 1.362
---
Log message:

Make sure that the C Frontend's runtime library directory is included as
a -L option to gccld whenever we're building a bytecode module or archive.
This gets around the "Cannot find library 'crtend'" warning messages.


---
Diffs of the changes:  (+3 -2)

 Makefile.rules |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/Makefile.rules
diff -u llvm/Makefile.rules:1.361 llvm/Makefile.rules:1.362
--- llvm/Makefile.rules:1.361	Tue Apr 11 22:07:02 2006
+++ llvm/Makefile.rules	Wed Apr 12 13:21:35 2006
@@ -690,7 +690,8 @@
 else
 
 Module     := $(LibDir)/$(MODULE_NAME).bc
-LinkModule := $(GCCLD)
+LinkModule := $(GCCLD) -L$(CFERuntimeLibDir)
+
 
 ifdef EXPORTED_SYMBOL_FILE
 LinkModule += -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
@@ -800,7 +801,7 @@
 all-local:: $(LibName.BCA)
 
 ifdef EXPORTED_SYMBOL_FILE
-BCLinkLib = $(GCCLD) -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
+BCLinkLib = $(GCCLD) -L$(CFERuntimeLibDir) -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
 
 $(LibName.BCA): $(ObjectsBC) $(LibDir)/.dir $(GCCLD) \
                 $(LLVMToolDir)/llvm-ar






More information about the llvm-commits mailing list