mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
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
This commit is contained in:
parent
9fb9213083
commit
bbd5e430f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user