Accepting request 850229 from devel:libraries:c_c++

- Enable LTO as it works (boo#1133136).

OBS-URL: https://build.opensuse.org/request/show/850229
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jemalloc?expand=0&rev=33
This commit is contained in:
2020-11-24 21:09:37 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 23 10:23:39 UTC 2020 - Martin Liška <mliska@suse.cz>
- Enable LTO as it works (boo#1133136).
-------------------------------------------------------------------
Fri Nov 20 15:37:37 UTC 2020 - Martin Liška <mliska@suse.cz>

View File

@@ -27,7 +27,7 @@ URL: http://jemalloc.net/
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
BuildRequires: pkg-config
BuildRequires: pkgconfig
Requires: %lname = %version
%description
@@ -52,20 +52,19 @@ Headers for jemalloc, general-purpose scalable concurrent malloc(3)
implementation.
%prep
%setup -q
%autosetup -p1
%build
%define _lto_cflags %{nil}
export EXTRA_CFLAGS="%optflags -std=gnu99"
%configure --disable-static --enable-prof \
%ifarch %arm
--disable-thp
%endif
make %{?_smp_mflags}
%make_build
%install
b="%buildroot"
b=%buildroot
%make_install
if [ "%_docdir" != "%_datadir/doc" ]; then
# Makefile apparently ignored the --docdir in %%configure
@@ -75,13 +74,12 @@ fi
%check
export LD_LIBRARY_PATH="$PWD/lib:$LD_LIBRARY_PATH"
make %{?_smp_mflags} check
%make_build check
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/jemalloc.sh
%_bindir/jemalloc-config
%_bindir/jeprof
@@ -89,12 +87,11 @@ make %{?_smp_mflags} check
%_docdir/%name
%files -n %lname
%defattr(-,root,root)
%doc ChangeLog COPYING README
%license COPYING
%doc ChangeLog README
%_libdir/libjemalloc.so.2*
%files devel
%defattr(-,root,root)
%_includedir/jemalloc
%_libdir/libjemalloc.so
%_libdir/pkgconfig/jemalloc.pc