From 079389a90b1c62ff8927da566e0b058619d5f5254cb24da9f37f94031a14d3cd Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Wed, 17 Jun 2020 12:37:51 +0000 Subject: [PATCH] Accepting request 815504 from home:polslinux:branches:hardware - Add -fcommon to allow building against GCC10 OBS-URL: https://build.opensuse.org/request/show/815504 OBS-URL: https://build.opensuse.org/package/show/hardware/cpupower?expand=0&rev=110 --- cpupower.changes | 5 +++++ cpupower.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cpupower.changes b/cpupower.changes index 4fe3df2..65fa722 100644 --- a/cpupower.changes +++ b/cpupower.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 17 12:17:02 UTC 2020 - Paolo Stivanin + +- Add -fcommon to allow building against GCC10 + ------------------------------------------------------------------- Tue May 19 09:21:48 UTC 2020 - Thomas Renninger diff --git a/cpupower.spec b/cpupower.spec index d8db406..d8a8adc 100644 --- a/cpupower.spec +++ b/cpupower.spec @@ -1,7 +1,7 @@ # # spec file for package cpupower # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Author: Thomas Renninger # # All modifications and additions to the file contributed by third parties @@ -116,12 +116,12 @@ cp %{SOURCE5} Makefile %build CONF="PACKAGE_BUGREPORT=https://bugs.opensuse.org mandir=%{_mandir} libdir=%{_libdir} CPUFRQ_BENCH=true VERSION=%{version}" -export CFLAGS="%{optflags} -I ." +export CFLAGS="%{optflags} -fcommon -I ." make $CONF %{?_smp_mflags} %ifarch ix86 x86_64 cd ../turbostat-%{tsversion} -export CFLAGS="%{optflags} -I ." +export CFLAGS="%{optflags} -fcommon -I ." make %{?_smp_mflags} cd ../x86_energy_perf_policy-%{pbversion} make %{?_smp_mflags}