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

17 lines
485 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
--- a/lib/config.hin
+++ b/lib/config.hin
@@ -198,7 +198,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