From 9cba3c19d28914b397d930768b9a7828176d9abe Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Thu, 9 Feb 2023 17:47:50 -0700 Subject: don't set _FORTIFY_SOURCE in configure distributions that want this flag set do so on a system wide level. for example Gentoo, Fedora, Debian, and OpenSUSE. since vis sets it when invoking cc via make it overwrites the system setting (and pollutes the output with redefinition warnings). For reference here is the related bug in Gentoo: https://bugs.gentoo.org/892960 --- CHANGELOG.md | 1 + configure | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 967f807..d334d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - improvements to and clean-up of vis-open - add Selection:remove() to lua API - fix bug where visual-line selections after view were considered visible +- don't set `_FORTIFY_SOURCE` in configure ## [0.8] - 2022-11-01 diff --git a/configure b/configure index 1e72e2b..d71ab78 100755 --- a/configure +++ b/configure @@ -220,7 +220,7 @@ tryflag CFLAGS_TRY -Werror=unused-command-line-argument tryldflag LDFLAGS_TRY -Werror=unknown-warning-option tryldflag LDFLAGS_TRY -Werror=unused-command-line-argument -CFLAGS_STD="-std=c99 -D_POSIX_C_SOURCE=200809L -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -D_FORTIFY_SOURCE=2" +CFLAGS_STD="-std=c99 -D_POSIX_C_SOURCE=200809L -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG" LDFLAGS_STD="-lc" OS=$(uname) -- cgit v1.2.3