From 6fb2dfaf50557b7daa218b70ae81ee90a242e48212bba984281ce2e8fd0af4cf Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Thu, 9 Feb 2017 06:48:14 +0000 Subject: [PATCH] Accepting request 455650 from home:gary_lin:branches:Base:System Amend the spec file to specify the gcc version for SLE11SP4 OBS-URL: https://build.opensuse.org/request/show/455650 OBS-URL: https://build.opensuse.org/package/show/Base:System/efivar?expand=0&rev=24 --- efivar.changes | 3 ++- efivar.spec | 19 ++++++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/efivar.changes b/efivar.changes index 397f18a..7ea15b9 100644 --- a/efivar.changes +++ b/efivar.changes @@ -1,8 +1,9 @@ ------------------------------------------------------------------- -Thu Feb 9 04:38:03 UTC 2017 - glin@suse.com +Thu Feb 9 06:32:10 UTC 2017 - glin@suse.com - Add efivar-use-sysmacros.patch to fix the Factory/Tumbleweed build correctly. +- Amend the spec file to specify the gcc version for SLE11SP4 ------------------------------------------------------------------- Mon Feb 6 14:40:25 UTC 2017 - rw@suse.com diff --git a/efivar.spec b/efivar.spec index dd1c462..d944b7e 100644 --- a/efivar.spec +++ b/efivar.spec @@ -84,19 +84,6 @@ perl -pi -e 's{\#include \}{typedef __CHAR16_TYPE__ char16_t;}' \ %endif %build -# SUSE multi-dist building effort -if [ "0%{?gcc}" != "0" ]||[ ! -x /usr/bin/gcc-ar ]; then - mkdir bin - if [ "0%{?gcc}" != "0" ]; then - for p in "" -ar -nm -ranlib; do - ln -s /usr/bin/gcc$p-%{gcc_v} bin/gcc$p - done - else - ln -s /usr/bin/ar bin/gcc-ar - fi - PATH=$PWD/bin:$PATH -fi - CFLAGS="%{optflags} -Wno-nonnull" %if %{with forced_lto} CFLAGS="$CFLAGS -flto" @@ -107,6 +94,12 @@ CFLAGS="%{optflags} -Wno-nonnull" export CFLAGS make \ +%if 0%{?suse_version} == 1110 + CC=gcc-%{gcc_v} \ + AR=gcc-ar-%{gcc_v} \ + NM=gcc-nm-%{gcc_v} \ + RANLIB=gcc-ranlib-%{gcc_v} \ +%endif libdir=%{_libdir} \ bindir=%{_bindir}