aboutsummaryrefslogtreecommitdiff
path: root/etc/sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-06-09 15:29:51 -0300
committerEuAndreh <eu@euandre.org>2024-06-09 15:29:51 -0300
commit8efb752f8352ebebe4a2e52bfc62e451d2a30370 (patch)
treec0cc4e72ed9b862dc8bf06873dbcae68e66f45c0 /etc/sh
parentetc/guix/home.scm: Add "fontconfig" and "freetype" packages: dependencies for... (diff)
downloaddotfiles-8efb752f8352ebebe4a2e52bfc62e451d2a30370.tar.gz
dotfiles-8efb752f8352ebebe4a2e52bfc62e451d2a30370.tar.xz
etc/sh/rc: Add -fsanitize=undefined to $LDFLAGS
Diffstat (limited to 'etc/sh')
-rw-r--r--etc/sh/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index a2d801d..c9ae6cc 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -144,12 +144,12 @@ export CCFLAGS='
-Wundef
-Wdouble-promotion
-fsanitize=undefined
- -fsanitize-trap
+ -fsanitize-trap=all
-Werror
-Wvla
'
CCFLAGS="$(printf '%s\n' "$CCFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
-LLDFLAGS='-static'
+LLDFLAGS='-static -fsanitize=undefined'
export LDFLAGS="$LLDFLAGS"
export CFLAGS="$CCFLAGS"
export LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS=1