forked from OSchip/llvm-project
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. llvm-svn: 113579
This commit is contained in:
parent
217cadd434
commit
9c8a97ce0a
|
@ -894,10 +894,13 @@ LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
|
||||||
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
|
LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Win32.DLL may refer to other components.
|
# Loadable module for Win32 requires all symbols resolved for linking.
|
||||||
ifeq ($(HOST_OS), $(filter $(HOST_OS), Cygwin MingW))
|
# Then all symbols in LLVM.dll will be available.
|
||||||
|
ifeq ($(ENABLE_SHARED),1)
|
||||||
ifdef LOADABLE_MODULE
|
ifdef LOADABLE_MODULE
|
||||||
LINK_COMPONENTS := all
|
ifneq (,$(filter $(HOST_OS),Cygwin MingW))
|
||||||
|
LINK_COMPONENTS += all
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue