[packages/libtomcrypt] build with our cflags
glen
glen at pld-linux.org
Sun Jan 25 18:59:33 CET 2015
commit b7e928289b45dad28a9ed7821794abe1a324cdac
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 25 19:59:08 2015 +0200
build with our cflags
libtomcrypt-makefile.patch | 17 +++++++++++++++++
libtomcrypt.spec | 2 ++
2 files changed, 19 insertions(+)
---
diff --git a/libtomcrypt.spec b/libtomcrypt.spec
index 25c9520..4f47d27 100644
--- a/libtomcrypt.spec
+++ b/libtomcrypt.spec
@@ -12,6 +12,7 @@ Group: Libraries
Source0: http://libtom.org/files/crypt-%{version}.tar.bz2
# Source0-md5: cea7e5347979909f458fe7ebb5a44f85
Patch0: %{name}-link.patch
+Patch1: %{name}-makefile.patch
URL: https://github.com/libtom/libtomcrypt
%{?with_ltm:BuildRequires: libtommath-devel}
BuildRequires: libtool >= 2:1.5
@@ -58,6 +59,7 @@ Statyczna biblioteka LibTomCrypt.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
CFLAGS="%{rpmcflags} %{?with_ltm:-DLTC_NO_ASM -DUSE_LTM -DLTM_DESC}" \
diff --git a/libtomcrypt-makefile.patch b/libtomcrypt-makefile.patch
new file mode 100644
index 0000000..c8b12e6
--- /dev/null
+++ b/libtomcrypt-makefile.patch
@@ -0,0 +1,17 @@
+--- libtomcrypt-1.17.orig/makefile.shared 2007-05-12 08:46:25.000000000 -0600
++++ libtomcrypt-1.17/makefile.shared 2007-06-27 21:56:29.000000000 -0600
+@@ -29,10 +29,12 @@
+ ifndef IGNORE_SPEED
+
+ # optimize for SPEED
+-CFLAGS += -O3 -funroll-loops
++# removed for building in Fedora
++#CFLAGS += -O3 -funroll-loops
+
+ # add -fomit-frame-pointer. hinders debugging!
+-CFLAGS += -fomit-frame-pointer
++# removed for building in Fedora
++#CFLAGS += -fomit-frame-pointer
+
+ # optimize for SIZE
+ #CFLAGS += -Os -DLTC_SMALL_CODE
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libtomcrypt.git/commitdiff/b7e928289b45dad28a9ed7821794abe1a324cdac
More information about the pld-cvs-commit
mailing list