]> git.cameronkatri.com Git - cgit.git/commitdiff
Makefile: Disable gettext in the Git submodule
authorLukas Fleischer <cgit@cryptocrack.de>
Mon, 4 Mar 2013 08:18:38 +0000 (09:18 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 4 Mar 2013 14:27:43 +0000 (09:27 -0500)
Newer libgit versions depend on the libintl library. However, we
currently do not link against libintl which breaks compilation under
OpenBSD:

    git/libgit.a(commit.o)(.text+0x1d1b): In function `lookup_commit_or_die':
    git/gettext.h:47: undefined reference to `libintl_gettext'
    [...]

Since we do not support i18n in cgit, just disable gettext in the Git
submodule to fix this.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Makefile

index 42e8bfd0c0c173a188b97f0103e40ac2882b4de8..112796171e0b32d40aad67a1e4559c4af8eb1347 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -99,7 +99,7 @@ ifeq ($(uname_S),$(filter $(uname_S),FreeBSD OpenBSD))
        NEEDS_LIBICONV = yes
 endif
 
-GIT_OPTIONS = prefix=/usr
+GIT_OPTIONS = prefix=/usr NO_GETTEXT=1
 OBJECTS =
 
 ifdef NO_ICONV