2 Subject: Patch 6.2.344 (extra)
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 6.2.344 (extra, after 6.2.337)
11 Problem: Cannot build gvimext.dll with MingW on Linux.
12 Solution: Add support for cross compiling. (Ronald Hoellwarth)
13 Files: src/GvimExt/Make_ming.mak
16 *** ../vim-6.2.343/src/GvimExt/Make_ming.mak Tue Mar 9 19:41:00 2004
17 --- src/GvimExt/Make_ming.mak Wed Mar 10 21:26:36 2004
20 # already loaded in memory. The binary image contains as well information
21 # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29
24 CXXFLAGS := -O2 -mno-cygwin
26 WINDRES := windres.exe
28 DEFFILE = gvimext_ming.def
34 # already loaded in memory. The binary image contains as well information
35 # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29
37 ! # If cross-compiling set this to yes, else set it to no
40 ! # For the old MinGW 2.95 (the one you get e.g. with debian woody)
41 ! # set the following variable to yes and check if the executables are
42 ! # really named that way.
43 ! # If you have a newer MinGW or you are using cygwin set it to no and
44 ! # check also the executables
48 ! ifeq ($(MINGWOLD),yes)
49 ! CXX = i586-mingw32msvc-g++
50 ! CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
51 ! WINDRES = i586-mingw32msvc-windres
53 ! CXX = i386-mingw32msvc-g++
54 CXXFLAGS := -O2 -mno-cygwin
55 ! WINDRES = i386-mingw32msvc-windres
59 WINDRES := windres.exe
60 + CXXFLAGS := -O2 -mno-cygwin
64 DEFFILE = gvimext_ming.def
71 all: all-before $(DLL) all-after
73 $(DLL): $(OBJ) $(RES) $(DEFFILE)
74 ! $(CXX) -shared $(CXXFLAGS) -s -o $@ \
75 -Wl,--enable-auto-image-base \
76 ! -Wl,--enable-auto-import \
77 ! -Wl,--whole-archive \
79 ! -Wl,--no-whole-archive \
82 gvimext.o: gvimext.cpp
83 ! $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $^ -o $@
85 $(RES): gvimext_ming.rc
86 ! $(WINDRES) --input-format=rc --output-format=coff -DMING $^ -o $@
89 $(RM) $(OBJ) $(RES) $(DLL)
91 all: all-before $(DLL) all-after
93 $(DLL): $(OBJ) $(RES) $(DEFFILE)
94 ! $(CXX) -shared $(CXXFLAGS) -s -o $@ \
95 -Wl,--enable-auto-image-base \
96 ! -Wl,--enable-auto-import \
97 ! -Wl,--whole-archive \
99 ! -Wl,--no-whole-archive \
102 gvimext.o: gvimext.cpp
103 ! $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
105 $(RES): gvimext_ming.rc
106 ! $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@
109 $(RM) $(OBJ) $(RES) $(DLL)
110 *** ../vim-6.2.343/src/version.c Thu Mar 11 20:55:09 2004
111 --- src/version.c Thu Mar 11 20:58:09 2004
115 { /* Add new patch number below this line */
121 The goal of science is to build better mousetraps.
122 The goal of nature is to build better mice.
124 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
125 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
126 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
127 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///