From f02b4b172b14bd721e57ebdf4d04b51060920a51 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 13 Aug 2024 10:15:02 +0200 Subject: zsh: fix gentoo build env --- zsh/.zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index e6f0c43..ba081c7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -207,14 +207,18 @@ export RUBYOPT=-Ku export GEM_HOME=$HOME/.local/lib/ruby/ export GEM_PATH=$HOME/.local/lib/ruby/:$GEM_PATH -export PYTHONPATH=$PYTHONPATH:~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages +if [ ! -z $PYTHONPATH ]; then + export PYTHONPATH=~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages:$PYTHONPATH +else + export PYTHONPATH=~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages +fi export PATH=~/.local/lib/python/site-packages:$PATH export PATH=~/.local/lib/node/bin:$PATH export TEXMFHOME='~/.texmf' -export CFLAGS="-march=native -mtune=native" +export CFLAGS="-O2 -march=native -mtune=native -pipe" export CXXFLAGS="$CFLAGS" export CCACHE_PATH=/usr/bin -- cgit v1.2.3