提交 b1f528f8 编写于 作者: P Peter Eisentraut

Check for -lresolv.

上级 8791d12d
此差异已折叠。
...@@ -677,6 +677,7 @@ AC_CHECK_LIB(compat, main) ...@@ -677,6 +677,7 @@ AC_CHECK_LIB(compat, main)
AC_CHECK_LIB(BSD, main) AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main) AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main) AC_CHECK_LIB(PW, main)
AC_CHECK_LIB(resolv, main)
AC_SEARCH_LIBS(crypt, crypt) AC_SEARCH_LIBS(crypt, crypt)
AC_CHECK_LIB(bind, __inet_ntoa) AC_CHECK_LIB(bind, __inet_ntoa)
dnl only consider libz to be present if we find <zlib.h> as well dnl only consider libz to be present if we find <zlib.h> as well
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California # Copyright (c) 1998, Regents of the University of California
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.37 2000/12/06 19:37:08 petere Exp $ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.38 2001/02/04 14:09:33 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -171,7 +171,7 @@ ifeq ($(PORTNAME), solaris) ...@@ -171,7 +171,7 @@ ifeq ($(PORTNAME), solaris)
else else
LINK.shared += -Wl,-h,$(soname) LINK.shared += -Wl,-h,$(soname)
endif endif
SHLIB_LINK += -ldl -lsocket -lresolv -lnsl -lm -lc SHLIB_LINK += -lm -lc
endif endif
ifeq ($(PORTNAME), osf) ifeq ($(PORTNAME), osf)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.48 2001/01/20 23:07:27 tgl Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.49 2001/02/04 14:09:33 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -30,7 +30,7 @@ endif ...@@ -30,7 +30,7 @@ endif
# Add libraries that libpq depends (or might depend) on into the # Add libraries that libpq depends (or might depend) on into the
# shared library link. (The order in which you list them here doesn't # shared library link. (The order in which you list them here doesn't
# matter.) # matter.)
SHLIB_LINK += $(filter -lcrypt -ldes -lkrb -lcom_err -lcrypto -lk5crypto -lkrb5 -lssl -lsocket -lnsl, $(LIBS)) SHLIB_LINK += $(filter -lcrypt -ldes -lkrb -lcom_err -lcrypto -lk5crypto -lkrb5 -lssl -lsocket -lnsl -lresolv, $(LIBS))
all: all-lib all: all-lib
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册