Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bba11cd

Browse files
committed
Since we only use libld on AIX, don't include it in LIBS on any other
platforms (it does exist on HPUX, for one). We could probably even make this a test for specific AIX versions, but I don't know which ones need it.
1 parent 0ad14eb commit bba11cd

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

configure

+6-1
Original file line numberDiff line numberDiff line change
@@ -5377,7 +5377,10 @@ if test "$ac_cv_search_shl_load" != no; then
53775377

53785378
fi
53795379

5380-
echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5380+
# We only use libld in port/dynloader/aix.c
5381+
case $host_os in
5382+
aix*)
5383+
echo "$as_me:$LINENO: checking for library containing ldopen" >&5
53815384
echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
53825385
if test "${ac_cv_search_ldopen+set}" = set; then
53835386
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -5503,6 +5506,8 @@ if test "$ac_cv_search_ldopen" != no; then
55035506

55045507
fi
55055508

5509+
;;
5510+
esac
55065511
echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
55075512
echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
55085513
if test "${ac_cv_search_getopt_long+set}" = set; then

configure.in

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.448 2006/02/10 11:35:47 petere Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.449 2006/02/15 17:23:10 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -595,7 +595,12 @@ AC_SEARCH_LIBS(pow, m)
595595
AC_SEARCH_LIBS(dlopen, dl)
596596
AC_SEARCH_LIBS(socket, [socket wsock32])
597597
AC_SEARCH_LIBS(shl_load, dld)
598-
AC_SEARCH_LIBS(ldopen, ld)
598+
# We only use libld in port/dynloader/aix.c
599+
case $host_os in
600+
aix*)
601+
AC_SEARCH_LIBS(ldopen, ld)
602+
;;
603+
esac
599604
AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
600605
AC_SEARCH_LIBS(crypt, crypt)
601606
# Solaris:

0 commit comments

Comments
 (0)