I'm trying to compile a static Git 2.17.1 on Debian (Windows Subsystem for Linux):
$ mkdir _git
$ make configure
$ ./configure --prefix=$PWD/_git NO_TCLTK=true NO_GETTEXT=true CFLAGS="${CFLAGS} -static"
$ make all
but I'm getting the error
...
MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo
/bin/sh: 1: msgfmt: not found
Makefile:2309: recipe for target 'po/build/locale/pt_PT/LC_MESSAGES/git.mo' failed
make: *** [po/build/locale/pt_PT/LC_MESSAGES/git.mo] Error 127
The information about NO_GETTEXT
I have from the configure file:
# Define NO_GETTEXT if you don't want Git output to be translated.
Does it need msgfmt
nonetheless?
Please install gettext:
Manually install Git needs: