SDL: Add library paths of all SDL sub-packages to sdl-config

Because of how nixpkgs works, all the SDL-umbrella libraries are in
different folders. On a usual system, when using `sdl-config --libs`,
this means that SDL_gfx would also be on the linker path. Some packages
seem to depend on this being the case.
This commit is contained in:
Puck Meerburg
2019-10-23 13:22:07 +00:00
parent b4ce8c3642
commit 1038cd5ad8
2 changed files with 16 additions and 5 deletions
@@ -1,6 +1,7 @@
addSDLPath () {
if [ -e "$1/include/SDL" ]; then
export SDL_PATH="$SDL_PATH $1/include/SDL"
export SDL_LIB_PATH="$SDL_LIB_PATH -L$1/lib"
fi
}