- Add -fcommon as there are a lot re-definitions which lead to errors

and compile failures with gcc10 which enables -fno-common by default
  bsc#1160383 - acpica fails with -fno-common

OBS-URL: https://build.opensuse.org/package/show/hardware/acpica?expand=0&rev=127
This commit is contained in:
Thomas Renninger 2020-02-06 08:30:38 +00:00 committed by Git OBS Bridge
parent a65d4c71ac
commit 12e96a1ce1
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 6 08:19:10 UTC 2020 - trenn@suse.de
- Add -fcommon as there are a lot re-definitions which lead to errors
and compile failures with gcc10 which enables -fno-common by default
bsc#1160383 - acpica fails with -fno-common
-------------------------------------------------------------------
Mon Jan 20 09:28:08 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package acpica
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020 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
@ -71,7 +71,7 @@ cd acpidump-%{dmp_ver}
cc %{SOURCE1} %{optflags} -o ec_access
make %{?_smp_mflags} -C acpi_genl CFLAGS="%{optflags}"
make %{?_smp_mflags} -C wmidump CFLAGS="%{optflags}"
make %{?_smp_mflags} OPT_CFLAGS="%{optflags}" HOST="_LINUX"
make %{?_smp_mflags} OPT_CFLAGS="%{optflags} -fcommon" HOST="_LINUX"
cd acpidump-%{dmp_ver}/tools/power/acpi
if [ -f tools/acpidump/Makefile ]; then # 4.3+
cd tools/acpidump/