about summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL
diff options
context:
space:
mode:
authorSergey Vinokurov <serg.foo@gmail.com>2023-09-11 00:06:23 +0100
committerSergey Vinokurov <serg.foo@gmail.com>2024-03-14 23:13:25 +0000
commitcff0adfc1b36fb099cb4ae1d382ece0f6b335e31 (patch)
tree43d96194a963e7007d18cb37a11a268ed85a5caa /pkgs/development/libraries/SDL
parentacefd0f368503d27de2d9f27a2975a0096ab65f2 (diff)
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.
Diffstat (limited to 'pkgs/development/libraries/SDL')
-rw-r--r--pkgs/development/libraries/SDL/setup-hook.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/SDL/setup-hook.sh b/pkgs/development/libraries/SDL/setup-hook.sh
index 553e8553a77f4..095053a495285 100644
--- a/pkgs/development/libraries/SDL/setup-hook.sh
+++ b/pkgs/development/libraries/SDL/setup-hook.sh
@@ -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
 }