--- /dev/null
+--- 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
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
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
CFLAGS="%{rpmcflags} %{?with_ltm:-DLTC_NO_ASM -DUSE_LTM -DLTM_DESC}" \