summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: efc07de)
raw | patch | inline | side by side (parent: efc07de)
author | Brandon Casey <drafnel@gmail.com> | |
Fri, 5 Jun 2009 23:36:10 +0000 (18:36 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Jun 2009 20:16:46 +0000 (13:16 -0700) |
This library is required on Solaris when compiling with NO_IPV6 since
hstrerror resides in libresolv. Additionally, Solaris 7 will need it,
since inet_ntop and inet_pton reside there too.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hstrerror resides in libresolv. Additionally, Solaris 7 will need it,
since inet_ntop and inet_pton reside there too.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index ba780775c77d0de628f492a55c561c0504d84e64..d36e92c10d0e8ca9daecde306d5468e59f5eef69 100644 (file)
--- a/Makefile
+++ b/Makefile
# Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
# Patrick Mauritz).
#
+# Define NEEDS_RESOLV if linking with -lnsl and/or -lsocket is not enough.
+# Notably on Solaris hstrerror resides in libresolv and on Solaris 7
+# inet_ntop and inet_pton additionally reside there.
+#
# Define NO_MMAP if you want to avoid mmap.
#
# Define NO_PTHREADS if you do not have or do not want to use Pthreads.
SHELL_PATH = /bin/bash
NO_STRCASESTR = YesPlease
NO_MEMMEM = YesPlease
- NO_HSTRERROR = YesPlease
NO_MKDTEMP = YesPlease
OLD_ICONV = UnfortunatelyYes
ifeq ($(uname_R),5.8)
NO_C99_FORMAT = YesPlease
NO_STRTOUMAX = YesPlease
endif
+ ifdef NO_IPV6
+ NEEDS_RESOLV = YesPlease
+ endif
INSTALL = /usr/ucb/install
TAR = gtar
BASIC_CFLAGS += -D__EXTENSIONS__
ifdef NEEDS_NSL
EXTLIBS += -lnsl
endif
+ifdef NEEDS_RESOLV
+ EXTLIBS += -lresolv
+endif
ifdef NO_D_TYPE_IN_DIRENT
BASIC_CFLAGS += -DNO_D_TYPE_IN_DIRENT
endif