disable incorrect check for MkLinux to allow building with shared libraries on PPC

This commit is contained in:
Karsten Hopp 2013-06-04 15:34:31 +02:00
parent 6fd99a1916
commit 2aa6adb4e0
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up cyrus-sasl-2.1.26/config/ltconfig.kh cyrus-sasl-2.1.26/config/ltconfig
--- cyrus-sasl-2.1.26/config/ltconfig.kh 2013-06-04 15:22:03.805307536 +0200
+++ cyrus-sasl-2.1.26/config/ltconfig 2013-06-04 15:22:44.385433261 +0200
@@ -2040,7 +2040,7 @@ linux-gnu*)
else
# Only the GNU ld.so supports shared libraries on MkLinux.
case "$host_cpu" in
- powerpc*) dynamic_linker=no ;;
+# powerpc*) dynamic_linker=no ;;
*) dynamic_linker='Linux ld.so' ;;
esac
fi

View File

@ -8,7 +8,7 @@
Summary: The Cyrus SASL library
Name: cyrus-sasl
Version: 2.1.26
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD with advertising
Group: System Environment/Libraries
# Source0 originally comes from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/;
@ -42,6 +42,8 @@ Patch44: cyrus-sasl-2.1.26-release-server_creds.patch
Patch45: cyrus-sasl-2.1.26-obsolete-macro.patch
# missing size_t declaration in sasl.h
Patch46: cyrus-sasl-2.1.26-size_t.patch
# disable incorrect check for MkLinux
Patch47: cyrus-sasl-2.1.2-ppc.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf, automake, libtool, gdbm-devel, groff
@ -179,6 +181,7 @@ chmod -x include/*.h
%patch44 -p1 -b .release-server_creds
%patch45 -p1 -b .obsolete-macro
%patch46 -p1 -b .size_t
%patch47 -p1 -b .ppc
%build
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
@ -407,6 +410,9 @@ getent passwd %{username} >/dev/null || useradd -r -g %{username} -d %{homedir}
%{_sbindir}/sasl2-shared-mechlist
%changelog
* Tue Jun 04 2013 Karsten Hopp <karsten@redhat.com> 2.1.26-8
- disable incorrect check for MkLinux to allow building with shared libraries on PPC
* Tue May 21 2013 Petr Lautrbach <plautrba@redhat.com> 2.1.26-7
- fix the spec file in order to build the cyrus-sasl-sql plugin
with support for PostgreSQL and MySQL