File project.diff of Package pcre
--- pcre.spec.orig
+++ pcre.spec
@@ -121,9 +121,7 @@ pcrecpp provides a C++ API to the PCRE e
%package doc
Summary: A library for Perl-compatible regular expressions
Group: Documentation/HTML
-%if 0%{?suse_version} >= 1120
BuildArch: noarch
-%endif
%description doc
The PCRE library is a set of functions that implement regular
@@ -142,10 +140,7 @@ as Perl 5.
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%autopatch -p1
%build
# Available JIT archs see sljit/sljitConfig.h
@@ -163,12 +158,12 @@ autoreconf -fiv
# RunTest test 2 needs lots of stack, if it ever segfaults
# try increasing this
ulimit -s $((16*1024))
- make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
+ make %{?_smp_mflags} CFLAGS="%{optflags} -ffat-lto-objects %{cflags_profile_generate}" CXXFLAGS+="-ffat-lto-objects" V=1
make CFLAGS="%{optflags} %{cflags_profile_generate}" check
make %{?_smp_mflags} clean
- make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
+ make %{?_smp_mflags} CFLAGS="%{optflags} -ffat-lto-objects %{cflags_profile_feedback}" CXXFLAGS+="-ffat-lto-objects" V=1
%else
- make %{?_smp_mflags} CFLAGS="%{optflags}"
+ make %{?_smp_mflags} CFLAGS="%{optflags} -ffat-lto-objects" CXXFLAGS+="-ffat-lto-objects"
%endif
%install