Enable LDAP support. Use -Wl,--as-needed to suppress bogus dependencies.

This commit is contained in:
Tom Lane 2008-05-18 02:17:53 +00:00
parent f6af6c0fb9
commit affd6a00b5

View File

@ -68,6 +68,7 @@
%{!?tcl:%define tcl 1}
%{!?ssl:%define ssl 1}
%{!?kerberos:%define kerberos 1}
%{!?ldap:%define ldap 1}
%{!?nls:%define nls 1}
%{!?uuid:%define uuid 1}
%{!?xml:%define xml 1}
@ -82,7 +83,7 @@
Summary: PostgreSQL client programs and libraries
Name: postgresql
Version: 8.3.1
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD
Group: Applications/Databases
Url: http://www.postgresql.org/
@ -138,6 +139,10 @@ BuildRequires: krb5-devel
BuildRequires: e2fsprogs-devel
%endif
%if %ldap
BuildRequires: openldap-devel
%endif
%if %nls
BuildRequires: gettext >= 0.10.35
%endif
@ -393,6 +398,10 @@ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
# Strip out -ffast-math from CFLAGS....
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
# Use --as-needed to eliminate unnecessary link dependencies.
# Hopefully upstream will do this for itself in some future release.
LDFLAGS="-Wl,--as-needed"; export LDFLAGS
%configure --disable-rpath \
%if %beta
--enable-debug \
@ -408,6 +417,9 @@ CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
%if %plpython
--with-python \
%endif
%if %ldap
--with-ldap \
%endif
%if %ssl
--with-openssl \
%endif
@ -843,6 +855,12 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Sat May 17 2008 Tom Lane <tgl@redhat.com> 8.3.1-4
- Enable LDAP support
Resolves: #445315
- Use -Wl,--as-needed to suppress bogus dependencies for libraries that
are really only needed by some of the subpackages
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
- Fix build breakage on PPC due to incorrect configure test
Related: #444317