summaryrefslogtreecommitdiff
path: root/system/sharutils/modern-gcc.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-25 12:44:52 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 09:57:54 -0500
commit41483a3ae82784645132d79d26ccf821e73a3e4e (patch)
treeb18dfbd6fa45bf928f1cb66ce1dd5032e9525970 /system/sharutils/modern-gcc.patch
parent9c3cc5c34817c15ddd427c20b5232df074ab1b4c (diff)
downloadpackages-41483a3ae82784645132d79d26ccf821e73a3e4e.tar.gz
packages-41483a3ae82784645132d79d26ccf821e73a3e4e.tar.bz2
packages-41483a3ae82784645132d79d26ccf821e73a3e4e.tar.xz
packages-41483a3ae82784645132d79d26ccf821e73a3e4e.zip
system/sharutils: Update for GCC -fno-common default
Diffstat (limited to 'system/sharutils/modern-gcc.patch')
-rw-r--r--system/sharutils/modern-gcc.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/system/sharutils/modern-gcc.patch b/system/sharutils/modern-gcc.patch
new file mode 100644
index 000000000..b42e0a7fb
--- /dev/null
+++ b/system/sharutils/modern-gcc.patch
@@ -0,0 +1,47 @@
+Upstream-URL: https://savannah.gnu.org/bugs/index.php?65790
+Upstream-Status: Pending
+
+--- sharutils-4.15.2/src/shar-opts.h.old 2015-05-30 10:34:12.000000000 -0500
++++ sharutils-4.15.2/src/shar-opts.h 2024-05-25 12:36:29.126495658 -0500
+@@ -352,7 +352,7 @@
+ * global exported definitions
+ */
+ #include "local.h"
+-char const * const program_name;
++extern char const * const program_name;
+
+ extern bool initialization_done;
+ extern int optidx;
+--- sharutils-4.15.2/src/unshar-opts.h.old 2015-05-30 10:34:18.000000000 -0500
++++ sharutils-4.15.2/src/unshar-opts.h 2024-05-25 12:36:07.748789737 -0500
+@@ -192,7 +192,7 @@
+ extern size_t separator_str_len;
+
+ #include "local.h"
+-char const * const program_name;
++extern char const * const program_name;
+
+
+ /* * * * * *
+--- sharutils-4.15.2/src/uudecode-opts.h.old 2015-05-30 10:34:21.000000000 -0500
++++ sharutils-4.15.2/src/uudecode-opts.h 2024-05-25 12:33:58.052707656 -0500
+@@ -170,7 +170,7 @@
+ * global exported definitions
+ */
+ #include "local.h"
+-char const * const program_name;
++extern char const * const program_name;
+
+
+ /* * * * * *
+--- sharutils-4.15.2/src/uuencode-opts.h.old 2015-05-30 10:34:25.000000000 -0500
++++ sharutils-4.15.2/src/uuencode-opts.h 2024-05-25 12:36:54.973721944 -0500
+@@ -166,7 +166,7 @@
+ * global exported definitions
+ */
+ #include "local.h"
+-char const * const program_name;
++extern char const * const program_name;
+
+
+ /* * * * * *