[packages/cryptopp] - disable asm code on x32 - rel 3

baggins baggins at pld-linux.org
Sat Apr 11 15:39:15 CEST 2015


commit 72a0958d009366debbd9f59a41f106dfacdca85e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 11 15:39:01 2015 +0200

    - disable asm code on x32
    - rel 3

 cryptopp.spec | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/cryptopp.spec b/cryptopp.spec
index 3449e60..6cfe5ee 100644
--- a/cryptopp.spec
+++ b/cryptopp.spec
@@ -1,9 +1,17 @@
+#
+# Conditional build:
+%bcond_without	asm		# disable x86 assembly code
+#
+%ifarch x32
+%undefine	with_asm
+%endif
+
 %define		orig_ver	561
 Summary:	Cryptopp Library - a free C++ class library of cryptographic schemes
 Summary(pl.UTF-8):	Cryptopp - biblioteka klas C++ dostarczająca narzędzia do kryptografii
 Name:		cryptopp
 Version:	5.6.1
-Release:	2
+Release:	3
 License:	BSD-like
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/cryptopp/%{name}%{orig_ver}.zip
@@ -62,6 +70,10 @@ Statyczna biblioteka Cryptopp.
 %{__autoheader}
 %{__automake}
 
+%if %{without asm}
+CFLAGS="%{rpmcflags} -DCRYPTOPP_DISABLE_X86ASM"
+CXXFLAGS="%{rpmcxxflags} -DCRYPTOPP_DISABLE_X86ASM"
+%endif
 %configure
 
 %{__make}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cryptopp.git/commitdiff/72a0958d009366debbd9f59a41f106dfacdca85e



More information about the pld-cvs-commit mailing list