vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit b5db78fdee379d886665066494127994f0de0d85
parent b6647ad017d2acb8429d54d143c0eb4c444d3054
Author: Randy Palamar <palamar@ualberta.ca>
Date:   Thu,  9 Feb 2023 17:47:50 -0700

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

Diffstat:
MCHANGELOG.md | 1+
Mconfigure | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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)