diff options
author | Benjamin Barenblat <bbaren@mit.edu> | 2020-05-30 15:38:23 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@mit.edu> | 2020-05-30 15:38:23 -0400 |
commit | b02d4b6e386b0e6c02ede532f06ccf615e8b72c5 (patch) | |
tree | 4666b6b9ccd4e97ddcb3f5601853d9e790977efe /debian/rules | |
parent | e444b6326e3bb1942d9b51e0cdc6bf9350692910 (diff) |
Use -D_FORTIFY_SOURCE=1 instead of 2
Prevent major performance regressions by forcing -D_FORTIFY_SOURCE=1
instead of -D_FORTIFY_SOURCE=2. See https://bugs.debian.org/934722 for
details.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index a7ae92ed..43395a92 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,10 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # arm64 and mips64el. See https://bugs.debian.org/871572 for details. export DEB_CFLAGS_MAINT_APPEND := -fno-code-hoisting +# Use -D_FORTIFY_SOURCE=1 instead of -D_FORTIFY_SOURCE=2 to prevent performance +# problems with %n specifiers. See https://bugs.debian.org/934722 for details. +export DEB_CPPFLAGS_MAINT_APPEND := -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 + # Harden SML executables. export DEB_BUILD_MAINT_OPTIONS := hardening=+all export MLTONARGS := \ |