From 9530594849a322df7e41d1b5779d1f920cde0c8221fd341b858c2ddfd9b4eca5 Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Wed, 17 Jun 2020 12:36:32 +0000 Subject: [PATCH] Accepting request 815494 from home:polslinux:branches:network - Add -fcommon to allow building against GCC10 OBS-URL: https://build.opensuse.org/request/show/815494 OBS-URL: https://build.opensuse.org/package/show/network/bird?expand=0&rev=10 --- bird.changes | 5 +++++ bird.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bird.changes b/bird.changes index 63a8f3b..6f4158d 100644 --- a/bird.changes +++ b/bird.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 17 11:26:13 UTC 2020 - Paolo Stivanin + +- Add -fcommon to allow building against GCC10 + ------------------------------------------------------------------- Wed Sep 18 19:14:22 UTC 2019 - Martin Hauke diff --git a/bird.spec b/bird.spec index 545f08b..aff1fc3 100644 --- a/bird.spec +++ b/bird.spec @@ -1,7 +1,7 @@ # # spec file for package bird # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -91,7 +91,7 @@ This package holds the HTML documentation. # gcc detects overflow in strncpy at proto/rip/packets.c:215:5 # but it's false alarm, relax gcc (-D_FORTIFY_SOURCE=1) # see http://bird.network.cz/pipermail/bird-users/2016-May/010380.html -export CFLAGS="${RPM_OPT_FLAGS//-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0} -fpic -DPIC -fno-strict-aliasing -Wno-parentheses -Wno-pointer-sign" +export CFLAGS="${RPM_OPT_FLAGS//-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0} -fpic -DPIC -fno-strict-aliasing -Wno-parentheses -Wno-pointer-sign -fcommon" export LDFLAGS="-Wl,-z,relro -pie" %define _configure ../configure mkdir 4 6