diff --git a/src/libCom/Makefile.Host b/src/libCom/Makefile.Host index 47837e03d..c10e4f61a 100644 --- a/src/libCom/Makefile.Host +++ b/src/libCom/Makefile.Host @@ -90,7 +90,8 @@ LIBSRCS += $(patsubst %,osdTime.cc,$(strip $(CPLUSPLUS))) # WIN32 has no getopt, we add it to the Com lib, # special initialisation is done in winmain.c -LIBSRCS_WIN32 := getopt.c dllmain.cc getLastWSAErrorAsString.c +LIBSRCS_WIN32 := getopt.c getLastWSAErrorAsString.c +LIBSRCS_WIN32 += $(patsubst %,dllmain.cc,$(strip $(CPLUSPLUS))) # Library to build: # lib$(LIBRARY).a or ..dll/..exp/..lib