Karsten Hopp be8276
To: vim_dev@googlegroups.com
Karsten Hopp be8276
Subject: Patch 7.3.326
Karsten Hopp be8276
Fcc: outbox
Karsten Hopp be8276
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp be8276
Mime-Version: 1.0
Karsten Hopp be8276
Content-Type: text/plain; charset=UTF-8
Karsten Hopp be8276
Content-Transfer-Encoding: 8bit
Karsten Hopp be8276
------------
Karsten Hopp be8276
Karsten Hopp be8276
Patch 7.3.326
Karsten Hopp be8276
Problem:    MingW 4.6 no longer supports the -mno-cygwin option.
Karsten Hopp be8276
Solution:   Split the Cygwin and MingW makefiles. (Matsushita Shougo)
Karsten Hopp be8276
Files:	    src/GvimExt/Make_cyg.mak, src/GvimExt/Make_ming.mak,
Karsten Hopp be8276
	    src/Make_cyg.mak, src/Make_ming.mak, src/xxd/Make_ming.mak,
Karsten Hopp be8276
	    Filelist
Karsten Hopp be8276
Karsten Hopp be8276
Karsten Hopp be8276
*** ../vim-7.3.325/src/GvimExt/Make_cyg.mak	2011-09-30 16:55:18.000000000 +0200
Karsten Hopp be8276
--- src/GvimExt/Make_cyg.mak	2011-09-30 16:45:49.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 0 ****
Karsten Hopp be8276
--- 1,77 ----
Karsten Hopp be8276
+ # Project: gvimext
Karsten Hopp be8276
+ # Generates gvimext.dll with gcc.
Karsten Hopp be8276
+ # To be used with Cygwin.
Karsten Hopp be8276
+ #
Karsten Hopp be8276
+ # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
Karsten Hopp be8276
+ # Now it is allocated dymanically by the linker by evaluating all DLLs
Karsten Hopp be8276
+ # already loaded in memory. The binary image contains as well information
Karsten Hopp be8276
+ # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ # If cross-compiling set this to yes, else set it to no
Karsten Hopp be8276
+ CROSS = no
Karsten Hopp be8276
+ #CROSS = yes
Karsten Hopp be8276
+ # For the old MinGW 2.95 (the one you get e.g. with debian woody)
Karsten Hopp be8276
+ # set the following variable to yes and check if the executables are
Karsten Hopp be8276
+ # really named that way.
Karsten Hopp be8276
+ # If you have a newer MinGW or you are using cygwin set it to no and
Karsten Hopp be8276
+ # check also the executables
Karsten Hopp be8276
+ MINGWOLD = no
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ # Link against the shared versions of libgcc/libstdc++ by default.  Set
Karsten Hopp be8276
+ # STATIC_STDCPLUS to "yes" to link against static versions instead.
Karsten Hopp be8276
+ STATIC_STDCPLUS=no
Karsten Hopp be8276
+ #STATIC_STDCPLUS=yes
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ # Note: -static-libstdc++ is not available until gcc 4.5.x.
Karsten Hopp be8276
+ LDFLAGS += -shared
Karsten Hopp be8276
+ ifeq (yes, $(STATIC_STDCPLUS))
Karsten Hopp be8276
+ LDFLAGS += -static-libgcc -static-libstdc++
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ ifeq ($(CROSS),yes)
Karsten Hopp be8276
+ DEL = rm
Karsten Hopp be8276
+ ifeq ($(MINGWOLD),yes)
Karsten Hopp be8276
+ CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
Karsten Hopp be8276
+ else
Karsten Hopp be8276
+ CXXFLAGS := -O2 -mno-cygwin
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ else
Karsten Hopp be8276
+ CXXFLAGS := -O2 -mno-cygwin
Karsten Hopp be8276
+ ifneq (sh.exe, $(SHELL))
Karsten Hopp be8276
+ DEL = rm
Karsten Hopp be8276
+ else
Karsten Hopp be8276
+ DEL = del
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ CXX := $(CROSS_COMPILE)g++
Karsten Hopp be8276
+ WINDRES := $(CROSS_COMPILE)windres
Karsten Hopp be8276
+ WINDRES_CXX = $(CXX)
Karsten Hopp be8276
+ WINDRES_FLAGS = --preprocessor="$(WINDRES_CXX) -E -xc" -DRC_INVOKED
Karsten Hopp be8276
+ LIBS :=  -luuid
Karsten Hopp be8276
+ RES  := gvimext.res
Karsten Hopp be8276
+ DEFFILE = gvimext_ming.def
Karsten Hopp be8276
+ OBJ  := gvimext.o
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ DLL  := gvimext.dll
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ .PHONY: all all-before all-after clean clean-custom
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ all: all-before $(DLL) all-after
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ $(DLL): $(OBJ) $(RES) $(DEFFILE)
Karsten Hopp be8276
+ 	$(CXX) $(LDFLAGS) $(CXXFLAGS) -s -o $@ \
Karsten Hopp be8276
+ 		-Wl,--enable-auto-image-base \
Karsten Hopp be8276
+ 		-Wl,--enable-auto-import \
Karsten Hopp be8276
+ 		-Wl,--whole-archive \
Karsten Hopp be8276
+ 			$^ \
Karsten Hopp be8276
+ 		-Wl,--no-whole-archive \
Karsten Hopp be8276
+ 			$(LIBS)
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ gvimext.o: gvimext.cpp
Karsten Hopp be8276
+ 	$(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ $(RES): gvimext_ming.rc
Karsten Hopp be8276
+ 	$(WINDRES) $(WINDRES_FLAGS) --input-format=rc --output-format=coff -DMING $? -o $@
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ clean: clean-custom
Karsten Hopp be8276
+ 	-$(DEL)  $(OBJ) $(RES) $(DLL)
Karsten Hopp be8276
*** ../vim-7.3.325/src/GvimExt/Make_ming.mak	2010-12-30 14:50:46.000000000 +0100
Karsten Hopp be8276
--- src/GvimExt/Make_ming.mak	2011-09-30 16:47:09.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 1,6 ****
Karsten Hopp be8276
  # Project: gvimext
Karsten Hopp be8276
  # Generates gvimext.dll with gcc.
Karsten Hopp be8276
! # Can be used for Cygwin and MingW (MingW ignores -mno-cygwin)
Karsten Hopp be8276
  #
Karsten Hopp be8276
  # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
Karsten Hopp be8276
  # Now it is allocated dymanically by the linker by evaluating all DLLs
Karsten Hopp be8276
--- 1,6 ----
Karsten Hopp be8276
  # Project: gvimext
Karsten Hopp be8276
  # Generates gvimext.dll with gcc.
Karsten Hopp be8276
! # To be used with MingW.
Karsten Hopp be8276
  #
Karsten Hopp be8276
  # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
Karsten Hopp be8276
  # Now it is allocated dymanically by the linker by evaluating all DLLs
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 31,42 ****
Karsten Hopp be8276
  ifeq ($(CROSS),yes)
Karsten Hopp be8276
  DEL = rm
Karsten Hopp be8276
  ifeq ($(MINGWOLD),yes)
Karsten Hopp be8276
! CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
Karsten Hopp be8276
  else
Karsten Hopp be8276
! CXXFLAGS := -O2 -mno-cygwin
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  else
Karsten Hopp be8276
! CXXFLAGS := -O2 -mno-cygwin
Karsten Hopp be8276
  ifneq (sh.exe, $(SHELL))
Karsten Hopp be8276
  DEL = rm
Karsten Hopp be8276
  else
Karsten Hopp be8276
--- 31,42 ----
Karsten Hopp be8276
  ifeq ($(CROSS),yes)
Karsten Hopp be8276
  DEL = rm
Karsten Hopp be8276
  ifeq ($(MINGWOLD),yes)
Karsten Hopp be8276
! CXXFLAGS := -O2 -fvtable-thunks
Karsten Hopp be8276
  else
Karsten Hopp be8276
! CXXFLAGS := -O2
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  else
Karsten Hopp be8276
! CXXFLAGS := -O2
Karsten Hopp be8276
  ifneq (sh.exe, $(SHELL))
Karsten Hopp be8276
  DEL = rm
Karsten Hopp be8276
  else
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 75,78 ****
Karsten Hopp be8276
  
Karsten Hopp be8276
  clean: clean-custom
Karsten Hopp be8276
  	-$(DEL)  $(OBJ) $(RES) $(DLL)
Karsten Hopp be8276
- 
Karsten Hopp be8276
--- 75,77 ----
Karsten Hopp be8276
*** ../vim-7.3.325/src/Make_cyg.mak	2010-11-03 21:59:23.000000000 +0100
Karsten Hopp be8276
--- src/Make_cyg.mak	2011-09-30 16:48:11.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 536,542 ****
Karsten Hopp be8276
  	$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
Karsten Hopp be8276
  
Karsten Hopp be8276
  GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp be8276
! 	$(MAKE) -C GvimExt -f Make_ming.mak CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp be8276
  
Karsten Hopp be8276
  vimrun.exe: vimrun.c
Karsten Hopp be8276
  	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c  $(LIBS)
Karsten Hopp be8276
--- 536,542 ----
Karsten Hopp be8276
  	$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
Karsten Hopp be8276
  
Karsten Hopp be8276
  GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp be8276
! 	$(MAKE) -C GvimExt -f Make_cyg.mak CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp be8276
  
Karsten Hopp be8276
  vimrun.exe: vimrun.c
Karsten Hopp be8276
  	$(CC) $(CFLAGS) -o vimrun.exe vimrun.c  $(LIBS)
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 565,571 ****
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  	-$(DEL) pathdef.c
Karsten Hopp be8276
  	$(MAKE) -C xxd -f Make_cyg.mak clean
Karsten Hopp be8276
! 	$(MAKE) -C GvimExt -f Make_ming.mak clean
Karsten Hopp be8276
  
Karsten Hopp be8276
  distclean: clean
Karsten Hopp be8276
  	-$(DEL) obj$(DIRSLASH)*.o
Karsten Hopp be8276
--- 565,571 ----
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  	-$(DEL) pathdef.c
Karsten Hopp be8276
  	$(MAKE) -C xxd -f Make_cyg.mak clean
Karsten Hopp be8276
! 	$(MAKE) -C GvimExt -f Make_cyg.mak clean
Karsten Hopp be8276
  
Karsten Hopp be8276
  distclean: clean
Karsten Hopp be8276
  	-$(DEL) obj$(DIRSLASH)*.o
Karsten Hopp be8276
*** ../vim-7.3.325/src/Make_ming.mak	2011-09-14 10:49:44.000000000 +0200
Karsten Hopp be8276
--- src/Make_ming.mak	2011-09-30 16:48:11.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 641,647 ****
Karsten Hopp be8276
  	upx vim.exe
Karsten Hopp be8276
  
Karsten Hopp be8276
  xxd/xxd.exe: xxd/xxd.c
Karsten Hopp be8276
! 	$(MAKE) -C xxd -f Make_cyg.mak CC=$(CC)
Karsten Hopp be8276
  
Karsten Hopp be8276
  GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp be8276
  	$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp be8276
--- 641,647 ----
Karsten Hopp be8276
  	upx vim.exe
Karsten Hopp be8276
  
Karsten Hopp be8276
  xxd/xxd.exe: xxd/xxd.c
Karsten Hopp be8276
! 	$(MAKE) -C xxd -f Make_ming.mak CC=$(CC)
Karsten Hopp be8276
  
Karsten Hopp be8276
  GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
Karsten Hopp be8276
  	$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 659,665 ****
Karsten Hopp be8276
  	-$(DEL) mzscheme_base.c
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  	$(MAKE) -C GvimExt -f Make_ming.mak clean
Karsten Hopp be8276
! 	$(MAKE) -C xxd -f Make_cyg.mak clean
Karsten Hopp be8276
  
Karsten Hopp be8276
  ###########################################################################
Karsten Hopp be8276
  INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
Karsten Hopp be8276
--- 659,665 ----
Karsten Hopp be8276
  	-$(DEL) mzscheme_base.c
Karsten Hopp be8276
  endif
Karsten Hopp be8276
  	$(MAKE) -C GvimExt -f Make_ming.mak clean
Karsten Hopp be8276
! 	$(MAKE) -C xxd -f Make_ming.mak clean
Karsten Hopp be8276
  
Karsten Hopp be8276
  ###########################################################################
Karsten Hopp be8276
  INCL = vim.h feature.h os_win32.h os_dos.h ascii.h keymap.h term.h macros.h \
Karsten Hopp be8276
*** ../vim-7.3.325/src/xxd/Make_ming.mak	2011-09-30 16:55:18.000000000 +0200
Karsten Hopp be8276
--- src/xxd/Make_ming.mak	2011-09-30 16:48:34.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 0 ****
Karsten Hopp be8276
--- 1,28 ----
Karsten Hopp be8276
+ # The most simplistic Makefile, for MinGW gcc on MS-DOS
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ ifndef USEDLL
Karsten Hopp be8276
+ USEDLL = no
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ ifeq (yes, $(USEDLL))
Karsten Hopp be8276
+ DEFINES =
Karsten Hopp be8276
+ LIBS    = -lc
Karsten Hopp be8276
+ else
Karsten Hopp be8276
+ DEFINES =
Karsten Hopp be8276
+ LIBS    =
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ CC = gcc
Karsten Hopp be8276
+ CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ ifneq (sh.exe, $(SHELL))
Karsten Hopp be8276
+ DEL = rm
Karsten Hopp be8276
+ else
Karsten Hopp be8276
+ DEL = del
Karsten Hopp be8276
+ endif
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ xxd.exe: xxd.c
Karsten Hopp be8276
+ 	$(CC) $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
Karsten Hopp be8276
+ 
Karsten Hopp be8276
+ clean:
Karsten Hopp be8276
+ 	-$(DEL) xxd.exe
Karsten Hopp be8276
*** ../vim-7.3.325/Filelist	2011-06-12 20:36:00.000000000 +0200
Karsten Hopp be8276
--- Filelist	2011-09-30 16:49:29.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 313,318 ****
Karsten Hopp be8276
--- 313,319 ----
Karsten Hopp be8276
  		src/xxd/Make_bc5.mak \
Karsten Hopp be8276
  		src/xxd/Make_cyg.mak \
Karsten Hopp be8276
  		src/xxd/Make_djg.mak \
Karsten Hopp be8276
+ 		src/xxd/Make_ming.mak \
Karsten Hopp be8276
  		src/xxd/Make_mvc.mak \
Karsten Hopp be8276
  		nsis/gvim.nsi \
Karsten Hopp be8276
  		nsis/README.txt \
Karsten Hopp be8276
*** ../vim-7.3.325/src/version.c	2011-09-30 16:39:41.000000000 +0200
Karsten Hopp be8276
--- src/version.c	2011-09-30 16:49:57.000000000 +0200
Karsten Hopp be8276
***************
Karsten Hopp be8276
*** 711,712 ****
Karsten Hopp be8276
--- 711,714 ----
Karsten Hopp be8276
  {   /* Add new patch number below this line */
Karsten Hopp be8276
+ /**/
Karsten Hopp be8276
+     326,
Karsten Hopp be8276
  /**/
Karsten Hopp be8276
Karsten Hopp be8276
-- 
Karsten Hopp be8276
hundred-and-one symptoms of being an internet addict:
Karsten Hopp be8276
33. You name your children Eudora, Mozilla and Dotcom.
Karsten Hopp be8276
Karsten Hopp be8276
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp be8276
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp be8276
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp be8276
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///