commit:     eb437d523be016555c89ba66b6b09977d62c75fc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 27 05:53:54 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 27 06:19:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb437d52

net-fs/smbtad: fix gcc 10 build

Closes: https://bugs.gentoo.org/707778
Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-fs/smbtad/smbtad-1.2.6.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/net-fs/smbtad/smbtad-1.2.6.ebuild 
b/net-fs/smbtad/smbtad-1.2.6.ebuild
index 8a0ed2811e4..e1a62c8d8bc 100644
--- a/net-fs/smbtad/smbtad-1.2.6.ebuild
+++ b/net-fs/smbtad/smbtad-1.2.6.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit cmake-utils
+inherit cmake-utils flag-o-matic
 
 DESCRIPTION="Data receiver of the SMB Traffic Analyzer project"
 HOMEPAGE="https://github.com/hhetter/smbtad";
@@ -28,6 +28,9 @@ DOCS=( README AUTHORS )
 src_prepare() {
        cmake-utils_src_prepare
 
+       # bug #707778
+       append-cflags -fcommon
+
        sed -i \
                -e '/CMAKE_C_FLAGS/d' \
                CMakeLists.txt || die

Reply via email to