From 83acd7503dace5593d0d9af73fc562dfc57b50ab Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 28 May 2024 13:38:19 -0500 Subject: user/libnih: Fix for GCC -fno-common --- user/libnih/gcc10.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 user/libnih/gcc10.patch (limited to 'user/libnih/gcc10.patch') diff --git a/user/libnih/gcc10.patch b/user/libnih/gcc10.patch new file mode 100644 index 000000000..a118b1f53 --- /dev/null +++ b/user/libnih/gcc10.patch @@ -0,0 +1,15 @@ +GCC 10+ use -fno-common by default, which means we need to declare this 'extern'. + +There is no upstream to send this to. + +--- libnih-1.0.3/nih-dbus-tool/output.h.old 2010-09-20 18:17:01.000000000 -0500 ++++ libnih-1.0.3/nih-dbus-tool/output.h 2024-05-28 13:22:58.501847205 -0500 +@@ -27,7 +27,7 @@ + + NIH_BEGIN_EXTERN + +-char *output_package; ++extern char *output_package; + + int output (const char *source_path, int source_fd, + const char *header_path, int header_fd, -- cgit v1.2.3-70-g09d2