From bf7e7caaec797ae3f83b15262f044be5523b28ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 28 Sep 2020 23:55:12 +0200 Subject: [PATCH] ucspi-ssl: fix build w/ gcc10 --- srcpkgs/ucspi-ssl/patches/fix-syntax.patch | 11 +++++++++++ srcpkgs/ucspi-ssl/template | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 srcpkgs/ucspi-ssl/patches/fix-syntax.patch diff --git a/srcpkgs/ucspi-ssl/patches/fix-syntax.patch b/srcpkgs/ucspi-ssl/patches/fix-syntax.patch new file mode 100644 index 00000000000..c486e58724a --- /dev/null +++ b/srcpkgs/ucspi-ssl/patches/fix-syntax.patch @@ -0,0 +1,11 @@ +--- host/superscript.com/net/ucspi-ssl-0.11.6a/src/sslperl.c 2019-06-22 10:19:41.000000000 +0200 ++++ host/superscript.com/net/ucspi-ssl-0.11.6a/src/sslperl.c 2020-09-28 23:36:57.970547752 +0200 +@@ -14,7 +14,7 @@ + #define call_argv perl_call_argv + #endif + +-extern char *who = "PERL!"; ++extern char *who /* = "PERL!" */; + + //extern const char *who; + diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template index 00574982557..3f4f828cc3e 100644 --- a/srcpkgs/ucspi-ssl/template +++ b/srcpkgs/ucspi-ssl/template @@ -18,6 +18,8 @@ checksum=e7fcd4ceec351a0f36b7d27188758709a6c095460ed4dce434e0c5d463c4c4ea # ad hoc build system breaks parallel build and cross-compilation disable_parallel_build="ad hoc build system breaks parallel build" +CFLAGS="-fcommon" + pre_build() { case "$XBPS_TARGET_MACHINE" in x86_64*) ;;