summaryrefslogtreecommitdiff
path: root/system/openrc/modern-gcc.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2024-05-25 12:48:51 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2024-08-07 09:57:54 -0500
commit31959c99e65a647741d8e95e11f21780d8996d6b (patch)
tree1f5e8bc8c3b9847de405909b495eaf1a057cd0fc /system/openrc/modern-gcc.patch
parent41483a3ae82784645132d79d26ccf821e73a3e4e (diff)
downloadpackages-31959c99e65a647741d8e95e11f21780d8996d6b.tar.gz
packages-31959c99e65a647741d8e95e11f21780d8996d6b.tar.bz2
packages-31959c99e65a647741d8e95e11f21780d8996d6b.tar.xz
packages-31959c99e65a647741d8e95e11f21780d8996d6b.zip
system/openrc: Fix for GCC -fno-common
Diffstat (limited to 'system/openrc/modern-gcc.patch')
-rw-r--r--system/openrc/modern-gcc.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/openrc/modern-gcc.patch b/system/openrc/modern-gcc.patch
new file mode 100644
index 000000000..e50029af2
--- /dev/null
+++ b/system/openrc/modern-gcc.patch
@@ -0,0 +1,14 @@
+Ensure we can build with -fno-common.
+--- openrc-0.24.1/src/rc/rc-logger.h.old 2017-03-14 19:58:26.000000000 -0500
++++ openrc-0.24.1/src/rc/rc-logger.h 2024-05-25 12:47:43.244186307 -0500
+@@ -13,8 +13,8 @@
+ #ifndef RC_LOGGER_H
+ #define RC_LOGGER_H
+
+-pid_t rc_logger_pid;
+-int rc_logger_tty;
++extern pid_t rc_logger_pid;
++extern int rc_logger_tty;
+ extern bool rc_in_logger;
+
+ void rc_logger_open(const char *runlevel);