mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Makefile.rules: LOADABLE_MODULE/Win32: "all" components may be linked
only when ENABLE_SHARED=1. Loadable module for Win32 requires all symbols resolved for linking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49c193cc74
commit
a64eb8357e
@ -894,10 +894,13 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
|
||||
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
|
||||
endif
|
||||
|
||||
# Win32.DLL may refer to other components.
|
||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
||||
# Loadable module for Win32 requires all symbols resolved for linking.
|
||||
# Then all symbols in LLVM.dll will be available.
|
||||
ifeq ($(ENABLE_SHARED),1)
|
||||
ifdef LOADABLE_MODULE
|
||||
LINK_COMPONENTS := all
|
||||
ifneq (,$(filter $(HOST_OS),Cygwin MingW))
|
||||
LINK_COMPONENTS += all
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user