From aef67a4ba15c4ec474e99d055535b18544da7951 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 9 Apr 2024 22:09:15 -0500 Subject: [PATCH] Bugfix: Add _GNU_SOURCE to silence strptime() warnings under some glibc systems. --- data/build/remove/settings | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/build/remove/settings b/data/build/remove/settings index e12578e..8c2ec58 100644 --- a/data/build/remove/settings +++ b/data/build/remove/settings @@ -78,6 +78,9 @@ defines -D_libcap_legacy_only_ defines-threadless -D_di_thread_support_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ +# This is needed for glibc and strptime() usage. +defines -D_GNU_SOURCE=1 + flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces flags -fstack-clash-protection -fno-delete-null-pointer-checks flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- 1.8.3.1