>
> Bill Lam wrote:
>
> > I was able to build window vim using mingw cross-compiled under debian. But
> > I found it failed to link for TINY build, the reason is inside os_mswin.c,
> > enc_to_utf8 and acp_to_enc routines are nested inside feature clipboard,
> > but moving these feat_mbyte out of clipboard's #IF block. It can build
> > successfully.
>
> What features did you build with then? Without clipboard but with
> multi-byte?
>
I attached the diff -u of my makefile for reference.
incidentally, there is a spelling error in the word 'version' that contain
strange character.
> > Another note, I found the size of vim.exe for normal built from mingw is 2M
> > which is nearly double of that in vim binary distribution. Perhaps msvc
> > still gets some merits.
>
> Did you try stripping the binary?
Yes, but it seemed no difference in size.
===========================================
diff -u Make_ming.mak Makefile.ming
--- Make_ming.mak 2010-09-12 10:04:17.000000000 +0800
+++ Makefile.ming 2010-09-12 11:14:09.000000000 +0800
@@ -27,14 +27,14 @@
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
OPTIMIZE=MAXSPEED
# set to yes to make gvim, no for vim
-GUI=yes
+GUI=no
# FEATURES=[TINY | SMALL | NORMAL | BIG | HUGE]
# set to TINY to make minimal version (few features)
-FEATURES=BIG
+FEATURES=TINY
# set to one of i386, i486, i586, i686 as the minimum target processor
-ARCH=i386
+ARCH=i586
# set to yes to cross-compile from unix; no=native Windows
-CROSS=no
+CROSS=yes
# set to path to iconv.h and libiconv.a to enable using 'iconv.dll'
#ICONV="."
ICONV=yes
@@ -45,7 +45,7 @@
IME=yes
DYNAMIC_IME=yes
# set to yes to enable writing a postscript file with :hardcopy
-POSTSCRIPT=no
+POSTSCRIPT=yes
# set to yes to enable OLE support
OLE=no
# Set the default $(WINVER) to make it work with pre-Win2k
@@ -81,7 +81,7 @@
# If you are using gettext-0.10.35 from http://sourceforge.net/projects/gettext
# or gettext-0.10.37 from http://sourceforge.net/projects/mingwrep/
-# uncomment the following, but I can't build a static versi
+# uncomment the following, but I can't build a static version with them, ?-(|
#GETTEXT=c:/gettext-0.10.37-20010430
#STATIC_GETTEXT=USE_STATIC_GETTEXT
#DYNAMIC_GETTEXT=DYNAMIC_GETTEXT
@@ -285,7 +285,7 @@
-DHAVE_PATHDEF -DFEAT_$(FEATURES)
ifeq ($(CROSS),yes)
# cross-compiler prefix:
-CROSS_COMPILE = i586-pc-mingw32msvc-
+CROSS_COMPILE = i586-mingw32msvc-
DEL = rm
MKDIR = mkdir -p
DIRSLASH = /
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment