summaryrefslogtreecommitdiff
path: root/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2012-01-11 19:44:26 +0000
committerNick White <git@njw.me.uk>2012-01-11 19:44:26 +0000
commit00a0162d824e1693619b85413aa6fc4bd3e98e72 (patch)
tree2c12a627f678e970ce6c0f8b9c02901e53e3fb29 /media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch
parent8eb4d59b4e2a12c1b49137a39aa04947527a24a2 (diff)
downloadnjw-gentoo-local-master.tar.bz2
njw-gentoo-local-master.zip
Add libsdl version that fixes sdl for dwmHEADmaster
Diffstat (limited to 'media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch')
-rw-r--r--media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch b/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch
new file mode 100644
index 0000000..f430428
--- /dev/null
+++ b/media-libs/libsdl/files/libsdl-1.2.13-sdl-config.patch
@@ -0,0 +1,20 @@
+Only output -L -rpath cruft if using a non-standard install location.
+
+Makes ABI / cross-compiling easier on the soul.
+
+--- sdl-config.in
++++ sdl-config.in
+@@ -44,7 +44,12 @@
+ echo -I@includedir@/SDL @SDL_CFLAGS@
+ ;;
+ @ENABLE_SHARED_TRUE@ --libs)
+-@ENABLE_SHARED_TRUE@ echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
++@ENABLE_SHARED_TRUE@ if test x"${prefix}" != x"/usr" ; then
++@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@"
++@ENABLE_SHARED_TRUE@ else
++@ENABLE_SHARED_TRUE@ libdirs=""
++@ENABLE_SHARED_TRUE@ fi
++@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@
+ @ENABLE_SHARED_TRUE@ ;;
+ @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
+ @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)