summaryrefslogtreecommitdiff
path: root/.config/shell/profile
diff options
context:
space:
mode:
Diffstat (limited to '.config/shell/profile')
-rw-r--r--.config/shell/profile13
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index aeecfde..e727447 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -18,6 +18,19 @@ export LESSHISTFILE="${XDG_STATE_HOME}/less/history"
export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc"
export VIMINIT='let $MYVIMRC = !has("nvim") ? "$XDG_CONFIG_HOME/vim/vimrc" : "$XDG_CONFIG_HOME/nvim/init.lua" | so $MYVIMRC'
+# flags
+export CFLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions \
+ -g -grecord-gcc-switches -pipe -Wall -Werror=format-security \
+ -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS \
+ -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong \
+ -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic \
+ -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection"
+export CXXFLAGS="$CFLAGS"
+export LDFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now \
+ -specs=/usr/lib/rpm/redhat/redhat-hardened-ld \
+ -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"
+MAKEFLAGS="-j12"
+
dir_colors="${XDG_CONFIG_HOME}/shell/dir_colors"
[[ -f "$dir_colors" ]] && eval $(dircolors "$dir_colors")
unset dir_colors