Commit 7966374b authored by Leo's avatar Leo
Browse files

community/ykpers: fix build with -fno-common

parent df9ef4b3
......@@ -9,7 +9,9 @@ arch="all"
license="BSD-2-Clause"
makedepends="libusb-dev yubico-c-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://developers.yubico.com/yubikey-personalization/Releases/$pkgname-$pkgver.tar.gz"
source="https://developers.yubico.com/yubikey-personalization/Releases/$pkgname-$pkgver.tar.gz
gcc-10.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
......@@ -36,4 +38,5 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="96edc7225bbd71ca255d3915321d4a613603c321c8502a5b97f23598f1439b231fcfc323f4f3737293da59efae2837370a0b64fdbd9465f0e2c05822d604df9f ykpers-1.20.0.tar.gz"
sha512sums="96edc7225bbd71ca255d3915321d4a613603c321c8502a5b97f23598f1439b231fcfc323f4f3737293da59efae2837370a0b64fdbd9465f0e2c05822d604df9f ykpers-1.20.0.tar.gz
c70c3f8bcc46f312a3c7736bfbf8990ec87ebb838c19c750bde0d73e117075a71529f2a84301886b85fd3f3b0c5e7885057224b9c61485ce768bb9cd690b50de gcc-10.patch"
Upstream: Should be
Reason: Fixes compilation with gcc-10
--- 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,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment