Here are the cross-compiling patches I came up with.
One thing that would be nice: break up the monolithic target
"installrtbase" into two or more targets, one for manual pages, and one
for the menus, color files, etc.
It should be possible to do a man-less install.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
--- vim71/src/configure.in.orig 2007-12-18 23:36:33.000000000 -0800
+++ vim71/src/configure.in 2007-12-18 23:41:56.000000000 -0800
@@ -179,25 +179,27 @@
dnl Add /usr/local/lib to $LDFLAGS and /usr/local/include to CFLAGS.
dnl Only when the directory exists and it wasn't there yet.
dnl For gcc don't do this when it is already in the default search path.
-have_local_include=''
-have_local_lib=''
-if test "$GCC" = yes; then
- echo 'void f(){}' > conftest.c
- dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)
- have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep
'/usr/local/include'`
- have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
- rm -f conftest.c conftest.o
-fi
-if test -z "$have_local_lib" -a -d /usr/local/lib; then
- tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e
's+-L/usr/local/lib$++g'`
- if test "$tt" = "$LDFLAGS"; then
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
- fi
-fi
-if test -z "$have_local_include" -a -d /usr/local/include; then
- tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e
's+-I/usr/local/include$++g'`
- if test "$tt" = "$CPPFLAGS"; then
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+if test "$cross_compiling" = no; then
+ have_local_include=''
+ have_local_lib=''
+ if test "$GCC" = yes; then
+ echo 'void f(){}' > conftest.c
+ dnl -no-cpp-precomp is needed for OS X 10.2 (Ben Fowler)
+ have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep
'/usr/local/include'`
+ have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
+ rm -f conftest.c conftest.o
+ fi
+ if test -z "$have_local_lib" -a -d /usr/local/lib; then
+ tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e
's+-L/usr/local/lib$++g'`
+ if test "$tt" = "$LDFLAGS"; then
+ LDFLAGS="$LDFLAGS -L/usr/local/lib"
+ fi
+ fi
+ if test -z "$have_local_include" -a -d /usr/local/include; then
+ tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e
's+-I/usr/local/include$++g'`
+ if test "$tt" = "$CPPFLAGS"; then
+ CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+ fi
fi
fi
--- vim71/src/Makefile.orig 2007-05-12 04:57:13.000000000 -0700
+++ vim71/src/Makefile 2007-12-18 23:39:14.000000000 -0800
@@ -1074,8 +1074,11 @@
# default vi editor, it will create a link from vi to Vim when doing
# "make install". An existing file will be overwritten!
# When not using it, some make programs can't handle an undefined $(LINKIT).
-#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi
+ifeq ($(LINK_TO_VI),y)
+LINKIT = ln -f -s
+else
LINKIT = @echo >/dev/null
+endif
###
### GRAPHICAL USER INTERFACE (GUI). {{{1
@@ -1761,7 +1764,7 @@
$(STRIP) $(DEST_BIN)/$(VIMTARGET)
chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET)
# may create a link to the new executable from /usr/bin/vi
- -$(LINKIT)
+ -$(LINKIT) $(BINDIR)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi
# Long list of arguments for the shell script that installs the manual pages
# for one language.