From fd1860dbb649060ed8d2d3042f55971abc0ab1af Mon Sep 17 00:00:00 2001 From: Niclas Zeising Date: Wed, 19 Aug 2020 23:15:48 +0000 Subject: [PATCH] security/ykpers: Fix build with -fno-common Add a patch from upstream to fix the build with -fno-common, which is the default with llvm 11. MFH: 2020Q3 --- security/ykpers/files/patch-09ea16d9.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 security/ykpers/files/patch-09ea16d9.c diff --git a/security/ykpers/files/patch-09ea16d9.c b/security/ykpers/files/patch-09ea16d9.c new file mode 100644 index 000000000000..685416fbba65 --- /dev/null +++ b/security/ykpers/files/patch-09ea16d9.c @@ -0,0 +1,15 @@ +diff --git a/ykpers-args.h b/ykpers-args.h +index 2a63268..9ff455a 100644 +--- ykpers-args.h ++++ 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,