]> git.pld-linux.org Git - packages/cryptopp.git/commitdiff
- disable asm code on x32 auto/th/cryptopp-5.6.1-3
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Apr 2015 13:39:01 +0000 (15:39 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Apr 2015 13:39:01 +0000 (15:39 +0200)
- rel 3

cryptopp.spec

index 3449e60b4bd7290fa70952a94c92388ae4841c5d..6cfe5eeac434a60074979bbf0fe948ddbf1572ac 100644 (file)
@@ -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}
This page took 0.077631 seconds and 4 git commands to generate.