python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / SDL / find-headers.patch
blobfd498117fd6462db7b68744915f3f93ad9387201
1 diff --git a/sdl-config.in b/sdl-config.in
2 index e0fcc0c..bf7928a 100644
3 --- a/sdl-config.in
4 +++ b/sdl-config.in
5 @@ -42,14 +42,18 @@ while test $# -gt 0; do
6 echo @SDL_VERSION@
7 ;;
8 --cflags)
9 - echo -I@includedir@/SDL @SDL_CFLAGS@
10 + SDL_CFLAGS=""
11 + for i in @includedir@/SDL $SDL_PATH; do
12 + SDL_CFLAGS="$SDL_CFLAGS -I$i"
13 + done
14 + echo $SDL_CFLAGS @SDL_CFLAGS@
16 @ENABLE_SHARED_TRUE@ --libs)
17 -@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
18 +@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@ $SDL_LIB_PATH
19 @ENABLE_SHARED_TRUE@ ;;
20 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
21 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)
22 -@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@
23 +@ENABLE_STATIC_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_STATIC_LIBS@ $SDL_LIB_PATH
24 @ENABLE_STATIC_TRUE@ ;;
26 echo "${usage}" 1>&2