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:
NAKAMURA Takumi 2010-09-10 06:27:02 +00:00
parent 49c193cc74
commit a64eb8357e

View File

@ -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