Files
conan-build/recipes/m4/all/patches/1.4.18-0009-disable-hardening-in-source.patch
2024-12-26 12:02:17 +03:00

17 lines
479 B
Diff

This requires linking to ssp on some systems, which might not always present.
If this is really desired:
* add `-lssp` to LDFLAGS, and
* add `-D_FORTIFY_SOURCE=2` to CPPFLAGS/CFLAGS
--- lib/config.hin
+++ lib/config.hin
@@ -96,7 +96,7 @@
/* Enable compile-time and run-time bounds-checking, and some warnings,
without upsetting newer glibc. */
#if defined __OPTIMIZE__ && __OPTIMIZE__
- # define _FORTIFY_SOURCE 2
+ //# define _FORTIFY_SOURCE 2
#endif