Accepting request 500673 from home:pluskalm:branches:Base:System

- Enable jit on aarch64
- Enable profiled building

OBS-URL: https://build.opensuse.org/request/show/500673
OBS-URL: https://build.opensuse.org/package/show/Base:System/pcre?expand=0&rev=77
This commit is contained in:
Dirk Mueller 2017-06-06 08:08:56 +00:00 committed by Git OBS Bridge
parent 6f650fb306
commit 00416871d4
2 changed files with 24 additions and 14 deletions

View File

@ -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

View File

@ -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