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:
NAKAMURA Takumi 2010-09-10 06:27:02 +00:00
parent 217cadd434
commit 9c8a97ce0a
1 changed files with 6 additions and 3 deletions

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