Skip to content

Commit 2369e35

Browse files
committed
updated for version 7.3.326
Problem: MingW 4.6 no longer supports the -mno-cygwin option. Solution: Split the Cygwin and MingW makefiles. (Matsushita Shougo)
1 parent acd6a04 commit 2369e35

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ SRC_DOS = \
313313
src/xxd/Make_bc5.mak \
314314
src/xxd/Make_cyg.mak \
315315
src/xxd/Make_djg.mak \
316+
src/xxd/Make_ming.mak \
316317
src/xxd/Make_mvc.mak \
317318
nsis/gvim.nsi \
318319
nsis/README.txt \

src/GvimExt/Make_ming.mak

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project: gvimext
22
# Generates gvimext.dll with gcc.
3-
# Can be used for Cygwin and MingW (MingW ignores -mno-cygwin)
3+
# To be used with MingW.
44
#
55
# Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
66
# Now it is allocated dymanically by the linker by evaluating all DLLs
@@ -31,12 +31,12 @@ endif
3131
ifeq ($(CROSS),yes)
3232
DEL = rm
3333
ifeq ($(MINGWOLD),yes)
34-
CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
34+
CXXFLAGS := -O2 -fvtable-thunks
3535
else
36-
CXXFLAGS := -O2 -mno-cygwin
36+
CXXFLAGS := -O2
3737
endif
3838
else
39-
CXXFLAGS := -O2 -mno-cygwin
39+
CXXFLAGS := -O2
4040
ifneq (sh.exe, $(SHELL))
4141
DEL = rm
4242
else
@@ -75,4 +75,3 @@ $(RES): gvimext_ming.rc
7575

7676
clean: clean-custom
7777
-$(DEL) $(OBJ) $(RES) $(DLL)
78-

src/Make_cyg.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ xxd/xxd.exe: xxd/xxd.c
536536
$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
537537

538538
GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
539-
$(MAKE) -C GvimExt -f Make_ming.mak CROSS_COMPILE=$(CROSS_COMPILE)
539+
$(MAKE) -C GvimExt -f Make_cyg.mak CROSS_COMPILE=$(CROSS_COMPILE)
540540

541541
vimrun.exe: vimrun.c
542542
$(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS)
@@ -565,7 +565,7 @@ ifdef MZSCHEME
565565
endif
566566
-$(DEL) pathdef.c
567567
$(MAKE) -C xxd -f Make_cyg.mak clean
568-
$(MAKE) -C GvimExt -f Make_ming.mak clean
568+
$(MAKE) -C GvimExt -f Make_cyg.mak clean
569569

570570
distclean: clean
571571
-$(DEL) obj$(DIRSLASH)*.o

src/Make_ming.mak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ upx: exes
641641
upx vim.exe
642642

643643
xxd/xxd.exe: xxd/xxd.c
644-
$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC)
644+
$(MAKE) -C xxd -f Make_ming.mak CC=$(CC)
645645

646646
GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
647647
$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
@@ -659,7 +659,7 @@ ifdef MZSCHEME
659659
-$(DEL) mzscheme_base.c
660660
endif
661661
$(MAKE) -C GvimExt -f Make_ming.mak clean
662-
$(MAKE) -C xxd -f Make_cyg.mak clean
662+
$(MAKE) -C xxd -f Make_ming.mak clean
663663

664664
###########################################################################
665665
INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
326,
712714
/**/
713715
325,
714716
/**/

0 commit comments

Comments
 (0)