From: Kevin Day Date: Wed, 10 Apr 2024 03:09:15 +0000 (-0500) Subject: Bugfix: Add _GNU_SOURCE to silence strptime() warnings under some glibc systems. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=aef67a4ba15c4ec474e99d055535b18544da7951;p=kevux-tools Bugfix: Add _GNU_SOURCE to silence strptime() warnings under some glibc systems. --- 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