From b7e928289b45dad28a9ed7821794abe1a324cdac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 25 Jan 2015 19:59:08 +0200 Subject: [PATCH] build with our cflags --- libtomcrypt-makefile.patch | 17 +++++++++++++++++ libtomcrypt.spec | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 libtomcrypt-makefile.patch 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 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}" \ -- 2.44.0