Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 14:14:55 -0700
branchSDL-1.2
changeset 6366 4488c8602961
parent 6364 4a08ade5b4c9
child 6395 c24bdfd6c595
Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD Brad Smith 2012-07-18 13:43:34 PDT autoconf patch to fix X dynamic loading of libraries on OpenBSD
configure.in
--- a/configure.in	Wed Jul 18 13:08:19 2012 -0700
+++ b/configure.in	Wed Jul 18 14:14:55 2012 -0700
@@ -1034,6 +1034,12 @@
                     x11_lib='libX11.so'
                     x11ext_lib='libXext.so'
                     ;;
+                *-*-openbsd*)
+                    x11_lib='libX11.so'
+                    x11ext_lib='libXext.so'
+                    xrender_lib='libXrender.so'
+                    xrandr_lib='libXrandr.so'
+                    ;;
                 *)
                     x11_lib=[`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
                     x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]