Enable LDAP support. Use -Wl,--as-needed to suppress bogus dependencies.
This commit is contained in:
parent
f6af6c0fb9
commit
affd6a00b5
@ -68,6 +68,7 @@
|
|||||||
%{!?tcl:%define tcl 1}
|
%{!?tcl:%define tcl 1}
|
||||||
%{!?ssl:%define ssl 1}
|
%{!?ssl:%define ssl 1}
|
||||||
%{!?kerberos:%define kerberos 1}
|
%{!?kerberos:%define kerberos 1}
|
||||||
|
%{!?ldap:%define ldap 1}
|
||||||
%{!?nls:%define nls 1}
|
%{!?nls:%define nls 1}
|
||||||
%{!?uuid:%define uuid 1}
|
%{!?uuid:%define uuid 1}
|
||||||
%{!?xml:%define xml 1}
|
%{!?xml:%define xml 1}
|
||||||
@ -82,7 +83,7 @@
|
|||||||
Summary: PostgreSQL client programs and libraries
|
Summary: PostgreSQL client programs and libraries
|
||||||
Name: postgresql
|
Name: postgresql
|
||||||
Version: 8.3.1
|
Version: 8.3.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Url: http://www.postgresql.org/
|
Url: http://www.postgresql.org/
|
||||||
@ -138,6 +139,10 @@ BuildRequires: krb5-devel
|
|||||||
BuildRequires: e2fsprogs-devel
|
BuildRequires: e2fsprogs-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %ldap
|
||||||
|
BuildRequires: openldap-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %nls
|
%if %nls
|
||||||
BuildRequires: gettext >= 0.10.35
|
BuildRequires: gettext >= 0.10.35
|
||||||
%endif
|
%endif
|
||||||
@ -393,6 +398,10 @@ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
|
|||||||
# Strip out -ffast-math from CFLAGS....
|
# Strip out -ffast-math from CFLAGS....
|
||||||
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
|
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 \
|
%configure --disable-rpath \
|
||||||
%if %beta
|
%if %beta
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
@ -408,6 +417,9 @@ CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
|
|||||||
%if %plpython
|
%if %plpython
|
||||||
--with-python \
|
--with-python \
|
||||||
%endif
|
%endif
|
||||||
|
%if %ldap
|
||||||
|
--with-ldap \
|
||||||
|
%endif
|
||||||
%if %ssl
|
%if %ssl
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
%endif
|
%endif
|
||||||
@ -843,6 +855,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Apr 28 2008 Tom Lane <tgl@redhat.com> 8.3.1-3
|
||||||
- Fix build breakage on PPC due to incorrect configure test
|
- Fix build breakage on PPC due to incorrect configure test
|
||||||
Related: #444317
|
Related: #444317
|
||||||
|
Loading…
Reference in New Issue
Block a user