gentoo-ebuilds/x11-misc/cairo-clock/files/cairo-clock-0.3.4-fortify-source.patch
Sam James 14a99c5deb
x11-misc/cairo-clock: don't redefine _FORTIFY_SOURCE
Closes: https://bugs.gentoo.org/898240
Signed-off-by: Sam James <sam@gentoo.org>
2023-10-04 16:10:44 +01:00

16 lines
488 B
Diff

Don't clobber our toolchain defaults.
https://bugs.gentoo.org/898240
--- a/configure.ac
+++ b/configure.ac
@@ -96,7 +96,9 @@ CLOCK_DEFINES='-DDATA_DIR="\"$(datadir)\"" -DPKGDATA_DIR="\"$(pkgdatadir)\""'
AC_SUBST([CLOCK_DEFINES])
dnl CFLAGS
-CFLAGS="$CFLAGS -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2"
+CFLAGS="$CFLAGS -Wall -pedantic -std=c99 -fno-strict-aliasing -fmessage-length=0"
+
+AX_ADD_FORTIFY_SOURCE
AC_CONFIG_FILES([
Makefile