Accepting request 359388 from devel:libraries:c_c++

- Fix build/test in SLE_11 by using gcc48 (forwarded request 359384 from olh)

OBS-URL: https://build.opensuse.org/request/show/359388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jemalloc?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2016-02-25 20:57:00 +00:00 committed by Git OBS Bridge
commit 863a8adaaf
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Feb 14 18:27:08 UTC 2016 - olaf@aepfle.de
- Fix build/test in SLE_11 by using gcc48
-------------------------------------------------------------------
Sat Oct 24 18:07:12 UTC 2015 - idonmez@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package jemalloc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,6 +29,9 @@ Url: http://canonware.com/jemalloc/
Source: http://www.canonware.com/download/jemalloc/jemalloc-%{version}.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
%if 0%{?suse_version} == 1110
BuildRequires: gcc48
%endif
BuildRequires: pkgconfig
Requires: %lname = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -68,6 +71,17 @@ malloc(3) implementation.
%build
export EXTRA_CFLAGS="%{optflags} -std=gnu99"
%if 0%{?suse_version} == 1110
if [ -f /usr/bin/gcc-4.6 ]; then
export CC=gcc-4.6
fi
if [ -f /usr/bin/gcc-4.7 ]; then
export CC=gcc-4.7
fi
if [ -f /usr/bin/gcc-4.8 ]; then
export CC=gcc-4.8
fi
%endif
%configure --enable-cc-silence \
--enable-prof
make %{?_smp_mflags}