mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-08 02:19:07 +08:00
7a199e7786
* Portfile CMake style * Fix mingw * Add polyfill for missing 'which' * Add patch for relocatable sdl-config Fixes mingw on Windows builds. * Update versions * CR requests * Remove man3 * Update versions
14 lines
308 B
Diff
14 lines
308 B
Diff
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@
|