From 3055aef4801064c2b5247a1696293c1b87693d13 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 4 Sep 2022 11:25:30 -0400 Subject: bop --- .config/shell/profile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.config/shell/profile') 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 -- cgit v1.2.3