From bbd5e430f1cbf6346307b093d9c77f3b664595d5 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 12 Apr 2006 18:21:35 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27621 91177308-0d34-0410-b5e6-96231b3b80d8 --- Makefile.rules | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.rules b/Makefile.rules index 42bfccbdaa1..b9b0a2b5b72 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -690,7 +690,8 @@ $(warning Modules require llvm-gcc but no llvm-gcc is available ****) 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 @@ else 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 -- 2.34.1