From 03157e3531c355fbb8ab3ebc176093b00b30bcd7effe5c9fac215d62772432b9 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Wed, 10 Jun 2020 03:12:17 +0000 Subject: [PATCH] Accepting request 812982 from home:dimstar:Factory - Revert back to the distro default compiler (i.e. GCC 10.1 on TW): + export CFLAGS+="-fcommon" until upstream makes this code compatible to GCC10. OBS-URL: https://build.opensuse.org/request/show/812982 OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-libev?expand=0&rev=41 --- shadowsocks-libev.changes | 7 +++++++ shadowsocks-libev.spec | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/shadowsocks-libev.changes b/shadowsocks-libev.changes index 21c62b8..2fbce46 100644 --- a/shadowsocks-libev.changes +++ b/shadowsocks-libev.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jun 9 16:03:02 UTC 2020 - Dominique Leuenberger + +- Revert back to the distro default compiler (i.e. GCC 10.1 on TW): + + export CFLAGS+="-fcommon" until upstream makes this code + compatible to GCC10. + ------------------------------------------------------------------- Sun Jun 7 11:16:33 UTC 2020 - opensuse-packaging diff --git a/shadowsocks-libev.spec b/shadowsocks-libev.spec index 5780727..95974b1 100644 --- a/shadowsocks-libev.spec +++ b/shadowsocks-libev.spec @@ -49,10 +49,6 @@ BuildRequires: pkg-config BuildRequires: ghostscript-core %endif BuildRequires: asciidoc -%if 0%{?suse_version} > 1500 -BuildRequires: gcc9 -BuildRequires: gcc9-c++ -%endif BuildRequires: systemd-rpm-macros BuildRequires: xmlto BuildRequires: pkgconfig(systemd) @@ -101,11 +97,8 @@ This package provides development headers for it. %setup -q %build +export CFLAGS="%{optflags} -fcommon" %configure \ -%if 0%{?suse_version} > 1500 - CC=gcc-9 \ - CXX=g++-9 \ -%endif --enable-shared %make_build