[libsrtp/el6/master] Fix build on PPC64
Jeffrey C. Ollie
jcollie at fedoraproject.org
Tue Jan 25 18:15:41 UTC 2011
commit c5eb1ae68e8b60239af68f48ef64b5e8267c58ad
Author: Jeffrey C. Ollie <jeff at ocjtech.us>
Date: Tue Jan 25 12:15:29 2011 -0600
Fix build on PPC64
libsrtp.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/libsrtp.spec b/libsrtp.spec
index 3aacc30..b796f4f 100644
--- a/libsrtp.spec
+++ b/libsrtp.spec
@@ -3,7 +3,7 @@
Name: lib%{shortname}
Version: 1.4.4
-Release: 1.%{cvsver}%{?dist}
+Release: 2.%{cvsver}%{?dist}
Summary: An implementation of the Secure Real-time Transport Protocol (SRTP)
Group: System Environment/Libraries
License: BSD
@@ -40,6 +40,12 @@ developing applications that use %{name}.
# Fix end-of-line encoding
sed -i 's/\r//g' doc/draft-irtf-cfrg-icm-00.txt
+%if 0%{?rhel} > 0
+%ifarch ppc64
+sed -i 's/-z noexecstack//' Makefile.in
+%endif
+%endif
+
%build
export CFLAGS="%{optflags} -fPIC"
%configure --disable-static
@@ -76,5 +82,8 @@ sed -i "s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/libsrt
%{_libdir}/*.so
%changelog
+* Tue Jan 25 2011 Jeffrey C. Ollie <jeff at ocjtech.us> - 1.4.4-2.20101004cvs
+- Don't use '-z noexecstack' option for linker on PPC64 (EL6)
+
* Mon Oct 4 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1.4.4-1.20101004cvs
- initial package
More information about the scm-commits
mailing list