summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-12 05:25:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-17 18:57:50 (GMT)
commit5a90d4ac1ab4d7700595e415e3a2062ecb378523 (patch)
tree60a205f9615995917e7e69224083dcd50414d74a /Makefile
parentaa894d8887c96a8b72adf94c2b52c519f7b47174 (diff)
downloadgit-5a90d4ac1ab4d7700595e415e3a2062ecb378523.zip
git-5a90d4ac1ab4d7700595e415e3a2062ecb378523.tar.gz
git-5a90d4ac1ab4d7700595e415e3a2062ecb378523.tar.bz2
[PATCH] getdomainname should be usable on SunOS with -lnsl
Jason Riedy suggests that we should be able to use getdomainname if we properly specify which libraries to link. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b48fe44..0e9f2ec 100644
--- a/Makefile
+++ b/Makefile
@@ -151,7 +151,8 @@ ifeq ($(shell uname -s),Darwin)
endif
ifeq ($(shell uname -s),SunOS)
NEEDS_SOCKET = YesPlease
- PLATFORM_DEFINES += -DNO_GETDOMAINNAME=1
+ NEEDS_NSL = YesPlease
+ PLATFORM_DEFINES += -D__EXTENSIONS__
endif
ifndef SHELL_PATH
@@ -198,6 +199,10 @@ ifdef NEEDS_SOCKET
LIBS += -lsocket
SIMPLE_LIB += -lsocket
endif
+ifdef NEEDS_NSL
+ LIBS += -lnsl
+ SIMPLE_LIB += -lnsl
+endif
DEFINES += '-DSHA1_HEADER=$(SHA1_HEADER)'