SDL: put only SDL-related paths in SDL_LIB_PATH

Putting everything that has lib/ directory is redundant and bloats
environment for projects with many dependencies.
This commit is contained in:
Sergey Vinokurov 2023-09-11 00:06:23 +01:00
parent acefd0f368
commit cff0adfc1b
No known key found for this signature in database
GPG Key ID: D6CD29530F98D6B8
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
addSDLPath () {
if [ -e "$1/include/SDL" ]; then
export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
fi
if [ -e "$1/lib" ]; then
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
if [ -e "$1/lib" ]; then
export SDL_LIB_PATH="${SDL_LIB_PATH-}${SDL_LIB_PATH:+ }-L$1/lib"
fi
fi
}