aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Palamar <palamar@ualberta.ca>2023-02-09 17:47:50 -0700
committerFelix Van der Jeugt <felix.vanderjeugt@posteo.net>2023-03-19 14:01:34 +0100
commit9cba3c19d28914b397d930768b9a7828176d9abe (patch)
treeed3ef65dbc795ce740233fa5a5a38233a82ae9f4
parentc22b2c2937d9dd65d0609e57f948f08da7f5c5ea (diff)
downloadvis-9cba3c19d28914b397d930768b9a7828176d9abe.tar.gz
vis-9cba3c19d28914b397d930768b9a7828176d9abe.tar.xz
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
-rw-r--r--CHANGELOG.md1
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 1 deletions
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)