Set user directory for shared library objects

This commit is contained in:
Nick Chambers 2022-11-26 19:07:09 -06:00
parent fd4c364a4f
commit 85e41ec7f6
1 changed files with 14 additions and 0 deletions

14
dotlib/darwin/clang.sh Normal file
View File

@ -0,0 +1,14 @@
if [[ -v DYLD_LIBRARY_PATH ]]; then
DYLD_LIBRARY_PATH+=":$HOME/lib"
else
DYLD_LIBRARY_PATH=$HOME/lib
fi
if [[ -v LIBRARY_PATH ]]; then
LIBRARY_PATH+=":$HOME/lib"
else
LIBRARY_PATH=$HOME/lib
fi
export {DYLD_,}LIBRARY_PATH
mkdir -p ~/lib