sys-auth/ykpers: Fix building with -fno-common

Closes: https://bugs.gentoo.org/706848
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-04-13 22:51:15 +02:00
parent ab0131b0ed
commit b68b79a1a7
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
--- a/ykpers-args.h
+++ b/ykpers-args.h
@@ -33,8 +33,8 @@
#include "ykpers.h"
-const char *usage;
-const char *optstring;
+extern const char *usage;
+extern const char *optstring;
int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
size_t oathid_len, const char **infname,

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -26,6 +26,7 @@ RDEPEND="${DEPEND}
"
S="${WORKDIR}/yubikey-personalization-${PV}"
PATCHES=( "${FILESDIR}"/${PN}-1.20.0-fix-gcc10-fno-common.patch )
DOCS=( doc/. AUTHORS NEWS README )