Skip to content

Commit

Permalink
Make sure that the C Frontend's runtime library directory is included as
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Reid Spencer committed Apr 12, 2006
1 parent 9fb9213 commit bbd5e43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bbd5e43

Please sign in to comment.