Skip to content

Instantly share code, notes, and snippets.

@h14i
Last active August 29, 2015 14:01
Show Gist options
  • Save h14i/89f334d8620484838ddb to your computer and use it in GitHub Desktop.
Save h14i/89f334d8620484838ddb to your computer and use it in GitHub Desktop.
building vim with rbenv ruby, pyenv python and plenv perl.
#!/usr/bin/zsh
plenv local system
pyenv local 2.7.6
rbenv local 2.1.2
plenv rehash
pyenv rehash
rbenv rehash
local PERL_LIB="$(plenv prefix)/lib"
local PYTHON_LIB="$(pyenv prefix)/lib"
local RUBY_LIB="$(rbenv prefix)/lib"
# Vim's configure options
CONF_OPTS=(
-q
--prefix="$HOME/local"
--build=x86_64-redhat-linux
--with-compiledby='h14i <[email protected]>'
--with-features=huge
--enable-fail-if-missing
--with-x
--x-includes=/usr/include/X11
--x-libraries=/usr/lib64
--disable-darwin
--enable-gui=gnome2
--enable-gtk2-check
--enable-gnome-check
--disable-gtktest
--enable-multibyte
--enable-luainterp=dynamic
--with-luajit
--enable-pythoninterp=dynamic
--enable-perlinterp=no
--enable-rubyinterp=dynamic
--enable-tclinterp
--with-tclsh=tclsh8.5
--with-tlib=ncursesw
)
# Build tools chain flags
local -a MYCFLAGS MYLDFLAGS
MYCFLAGS=( -O2 )
MYLDFLAGS=(
-Wl,-rpath,$PERL_LIB
-Wl,-rpath,$PYTHON_LIB
-Wl,-rpath,$RUBY_LIB
)
./configure $CONF_OPTS CFLAGS="$MYCFLAGS" LDFLAGS="$MYLDFLAGS"
# vim: set ft=zsh sw=2 sts=2 ai et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment