[packages/yara] do not enforce -O3 from makefile

glen glen at pld-linux.org
Mon Jul 27 07:25:11 CEST 2015


commit 225ba25c5c1a3fdecce94fd44166f28880d4781d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 27 08:24:34 2015 +0300

    do not enforce -O3 from makefile

 cflags.patch | 8 ++++++++
 yara.spec    | 2 ++
 2 files changed, 10 insertions(+)
---
diff --git a/yara.spec b/yara.spec
index fef6f5c..5931bf6 100644
--- a/yara.spec
+++ b/yara.spec
@@ -14,6 +14,7 @@ License:	Apache v2.0
 Group:		Libraries
 Source0:	https://github.com/plusvic/yara/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	b3f9d4e00c1da4d37af05b1f4488255f
+Patch0:		cflags.patch
 URL:		http://plusvic.github.io/yara/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -57,6 +58,7 @@ Statyczna biblioteka yara.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal} -I m4
diff --git a/cflags.patch b/cflags.patch
new file mode 100644
index 0000000..c418f10
--- /dev/null
+++ b/cflags.patch
@@ -0,0 +1,8 @@
+--- yara-3.4.0/Makefile.am~	2015-06-18 16:33:39.000000000 +0300
++++ yara-3.4.0/Makefile.am	2015-07-27 08:23:31.883410486 +0300
+@@ -1,4 +1,4 @@
+-AM_CFLAGS=-O3 -std=gnu99 -Wall -I$(srcdir)/libyara/include
++AM_CFLAGS= -std=gnu99 -Wall -I$(srcdir)/libyara/include
+ 
+ # Build the library in the hand subdirectory first.
+ SUBDIRS = libyara
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yara.git/commitdiff/225ba25c5c1a3fdecce94fd44166f28880d4781d



More information about the pld-cvs-commit mailing list