I want to build vim with all libraries, which vim depends on, statically linked. Vim version is sufficient to run YouCompleteMe. I use the following flags with configure script:
$./configure --with-features=huge \ --enable-multibyte \ --enable-rubyinterp \ --enable-pythoninterp \ --enable-perlinterp \ --enable-luainterp \ --enable-gui=gtk2 \ --enable-cscope
I set LDFLAGS to '-static'
I also installed all vim build dependencies:
$sudo apt-get build-dep vim
It turns out that there is still something missing because I get the following error message from configure script:
checking --with-tlib argument... empty: automatic terminal library selection checking for tgetent in -ltinfo... no checking for tgetent in -lncurses... no checking for tgetent in -ltermlib... no checking for tgetent in -ltermcap... no checking for tgetent in -lcurses... no no terminal library found checking for tgetent()... configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with --with-tlib.
I checked if I have static version of ncurses library - yes, I have under the following location:
Without static LDFLAG vim builds without any problem.
Do you have any ideas why this happens?