aboutsummaryrefslogtreecommitdiff
path: root/etc/sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-04-22 08:42:35 -0300
committerEuAndreh <eu@euandre.org>2024-04-22 08:42:35 -0300
commit1bd2ea784356707728fb0f700207b940cd2829fe (patch)
tree7667e15f845088c0c3ddc07f55bed5090e81c5c7 /etc/sh
parentetc/sh/rc: Disable $CGO_ENABLED (diff)
downloaddotfiles-1bd2ea784356707728fb0f700207b940cd2829fe.tar.gz
dotfiles-1bd2ea784356707728fb0f700207b940cd2829fe.tar.xz
etc/sh/rc: Have both $CCFLAGS and $CFLAGS
Diffstat (limited to 'etc/sh')
-rw-r--r--etc/sh/rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index 58f6b1a..2f48e89 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -126,10 +126,12 @@ export VGFLAGS='
VGFLAGS="$(printf '%s\n' "$VGFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
export CGO_ENABLED=0
+export CC=gcc
export CCFLAGS='
-D_POSIX_C_SOURCE=200809L
-D_XOPEN_SOURCE=700
-g
+ -fPIE
-std=c99
-Wall
-Wextra
@@ -142,8 +144,10 @@ export CCFLAGS='
-fsanitize=undefined
-fsanitize-trap
-Werror
+ -Wvla
'
CCFLAGS="$(printf '%s\n' "$CCFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
+export CFLAGS="$CCFLAGS"
export LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS=1
export LEIN_HOME="$XDG_CONFIG_HOME"/leiningen
export GUILE_EFFECTIVE_VERSION