pineapple-src/externals/vcpkg/ports/sdl1/sdl-config.patch
2022-07-23 03:01:36 +02:00

13 lines
308 B
Diff
Executable file

diff --git a/sdl-config.in b/sdl-config.in
index e0fcc0c..de602d8 100644
--- a/sdl-config.in
+++ b/sdl-config.in
@@ -1,6 +1,7 @@
#!/bin/sh
-prefix=@prefix@
+DIRNAME=$(dirname $0)
+prefix=$(CDPATH= cd -- "${DIRNAME%/tools/sdl1/*}" && pwd -P)
exec_prefix=@exec_prefix@
exec_prefix_set=no
libdir=@libdir@