patch 9.1.0640: Mingw: Makefile can be improved
Problem: Mingw: Makefile can be improved
Solution: Reduce nesting level, directly check if the '-Wl,--entry'
option is required (Ken Takata)
closes: #15386
Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
0bee82b1d0
commit
3da011871a
@ -1140,8 +1140,8 @@ $(EXEOBJG): | $(OUTDIR)
|
|||||||
$(EXEOBJC): | $(OUTDIR)
|
$(EXEOBJC): | $(OUTDIR)
|
||||||
|
|
||||||
ifeq ($(VIMDLL),yes)
|
ifeq ($(VIMDLL),yes)
|
||||||
ifneq ($(COVERAGE),yes)
|
ifneq ($(findstring -nostdlib,$(EXELFLAGS)),)
|
||||||
ifndef MZSCHEME
|
# -Wl,--entry needs to be specified when -nostdlib is used.
|
||||||
ifeq ($(ARCH),x86-64)
|
ifeq ($(ARCH),x86-64)
|
||||||
EXEENTRYC = -Wl,--entry=wmainCRTStartup
|
EXEENTRYC = -Wl,--entry=wmainCRTStartup
|
||||||
EXEENTRYG = -Wl,--entry=wWinMainCRTStartup
|
EXEENTRYG = -Wl,--entry=wWinMainCRTStartup
|
||||||
@ -1150,7 +1150,6 @@ EXEENTRYC = -Wl,--entry=_wmainCRTStartup
|
|||||||
EXEENTRYG = -Wl,--entry=_wWinMainCRTStartup@0
|
EXEENTRYG = -Wl,--entry=_wWinMainCRTStartup@0
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
$(TARGET): $(OBJ)
|
$(TARGET): $(OBJ)
|
||||||
$(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid -lgdi32 $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) $(SODIUMLIB)
|
$(LINK) $(CFLAGS) $(LFLAGS) -o $@ $(OBJ) $(LIB) -lole32 -luuid -lgdi32 $(LUA_LIB) $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(PYTHON3LIB) $(RUBYLIB) $(SODIUMLIB)
|
||||||
|
|||||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
640,
|
||||||
/**/
|
/**/
|
||||||
639,
|
639,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user