summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2000-01-14 00:53:39 +0000
committerwtc%netscape.com <devnull@localhost>2000-01-14 00:53:39 +0000
commit189f241e557794da75bcdafd812a3114d1e57bc3 (patch)
treea96636514898ebd4dcb7e5304dd74105d40b215a
parentcab47394c0bf200c4f1a0f24aad15a206245ceb4 (diff)
downloadnspr-hg-189f241e557794da75bcdafd812a3114d1e57bc3.tar.gz
Bugzilla bug #20770: on Solaris, gethost.c needs to link with -lsocket
if USE_IPV6=1 is specified.
-rw-r--r--pr/tests/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/pr/tests/Makefile b/pr/tests/Makefile
index 2fd2c0cd..1d19c9dd 100644
--- a/pr/tests/Makefile
+++ b/pr/tests/Makefile
@@ -497,10 +497,14 @@ install:: export
clean::
rm -f $(TARGETS)
-# The prpoll test calls BSD socket functions, so it needs to link
+# The following tests call BSD socket functions, so they need to link
# with -lsocket on some platforms.
ifeq ($(OS_ARCH),SunOS)
ifneq ($(OS_RELEASE),4.1.3_U1)
+ifeq ($(USE_IPV6),1)
+$(OBJDIR)/gethost: $(OBJDIR)/gethost.o
+ $(PURE) $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBPR) -lsocket $(EXTRA_LIBS) -o $@
+endif
$(OBJDIR)/prpoll: $(OBJDIR)/prpoll.o
$(PURE) $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBPR) -lsocket $(EXTRA_LIBS) -o $@
endif