aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrandon Casey <casey@nrlssc.navy.mil>2009-07-10 12:10:45 -0500
committerJunio C Hamano <gitster@pobox.com>2009-07-10 23:50:29 -0700
commitecc395c112b45b00df6c8b1e8d665123c1a28bca (patch)
treeace6b76d15e018742384379d0af83260d030538c /Makefile
parent9398b85994ee7d602e29e0b82de01b9605ee535f (diff)
downloadgit-ecc395c112b45b00df6c8b1e8d665123c1a28bca.tar.gz
git-ecc395c112b45b00df6c8b1e8d665123c1a28bca.tar.xz
Makefile: add NEEDS_LIBGEN to optionally add -lgen to compile arguments
Commit 003b33a8 recently added a call to basename(). On IRIX 6.5, this function resides in libgen and -lgen is required for the linker. Update configure.ac too. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4be508e87..6d1a38fde 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,8 @@ all::
#
# Define NO_LIBGEN_H if you don't have libgen.h.
#
+# Define NEEDS_LIBGEN if your libgen needs -lgen when linking
+#
# Define NO_SYS_SELECT_H if you don't have sys/select.h.
#
# Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
@@ -1019,6 +1021,9 @@ ifdef NEEDS_LIBICONV
endif
EXTLIBS += $(ICONV_LINK) -liconv
endif
+ifdef NEEDS_LIBGEN
+ EXTLIBS += -lgen
+endif
ifdef NEEDS_SOCKET
EXTLIBS += -lsocket
endif