diff --git a/pcre.changes b/pcre.changes index 3042f63..50a56c8 100644 --- a/pcre.changes +++ b/pcre.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 2 12:42:01 UTC 2017 - mpluskal@suse.com + +- Enable jit on aarch64 +- Enable profiled building + ------------------------------------------------------------------- Thu Feb 9 08:55:30 UTC 2017 - astieger@suse.com diff --git a/pcre.spec b/pcre.spec index 6180a21..7e6b065 100644 --- a/pcre.spec +++ b/pcre.spec @@ -37,7 +37,6 @@ BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The PCRE library is a set of functions that implement regular @@ -146,19 +145,25 @@ as Perl 5. %build # Available JIT archs see sljit/sljitConfig.h autoreconf -fiv -export LDFLAGS="-Wl,-z,relro,-z,now" %configure \ -%ifarch %{ix86} x86_64 %{arm} ppc ppc64 ppc64le mips sparc - --enable-jit \ +%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64 ppc64le mips sparc + --enable-jit \ +%endif + --enable-static \ + --with-link-size=2 \ + --with-match-limit=10000000 \ + --enable-newline-is-lf \ + --enable-pcre16 \ + --enable-utf8 \ + --enable-unicode-properties +%if %{do_profiling} + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1 + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" check + make clean + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1 +%else + make %{?_smp_mflags} CFLAGS="%{optflags}" %endif - --enable-static \ - --with-link-size=2 \ - --with-match-limit=10000000 \ - --enable-newline-is-lf \ - --enable-pcre16 \ - --enable-utf8 \ - --enable-unicode-properties -make %{?_smp_mflags} V=1 %install %make_install @@ -168,8 +173,7 @@ mv %{buildroot}%{_datadir}/doc/pcre %{buildroot}/%{_defaultdocdir}/pcre-doc find %{buildroot} -type f -name "*.la" -delete -print %check -export LANG=POSIX -make test -j1 +make %{?_smp_mflags} check %post -n libpcre1 -p /sbin/ldconfig %postun -n libpcre1 -p /sbin/ldconfig