aboutsummaryrefslogtreecommitdiff
path: root/etc/sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-06-16 10:00:58 -0300
committerEuAndreh <eu@euandre.org>2024-06-16 10:00:58 -0300
commit511bddff20715bb7ed58851935df21f4c7f89d10 (patch)
treefe79d562d5061f21bcf8a8e69b9657822072a28a /etc/sh
parentbin/uri: Unbuffer when processing an stream online (diff)
downloaddotfiles-511bddff20715bb7ed58851935df21f4c7f89d10.tar.gz
dotfiles-511bddff20715bb7ed58851935df21f4c7f89d10.tar.xz
etc/sh/rc: Remove -g from $CCFLAGS and -static from $LLDFLAGS
Diffstat (limited to 'etc/sh')
-rw-r--r--etc/sh/rc8
1 files changed, 3 insertions, 5 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index c9ae6cc..a9e9c98 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -132,7 +132,6 @@ export CC=gcc
export CCFLAGS='
-D_POSIX_C_SOURCE=200809L
-D_XOPEN_SOURCE=700
- -g
-fPIE
-std=c99
-Wall
@@ -144,14 +143,13 @@ export CCFLAGS='
-Wundef
-Wdouble-promotion
-fsanitize=undefined
- -fsanitize-trap=all
-Werror
-Wvla
'
CCFLAGS="$(printf '%s\n' "$CCFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
-LLDFLAGS='-static -fsanitize=undefined'
-export LDFLAGS="$LLDFLAGS"
-export CFLAGS="$CCFLAGS"
+LLDFLAGS='-fsanitize=undefined'
+export LDFLAGS="$LLDFLAGS -static"
+export CFLAGS="$CCFLAGS -g"
export LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS=1
export LEIN_HOME="$XDG_CONFIG_HOME"/leiningen
export GUILE_EFFECTIVE_VERSION