[PATCH] Fix dynamic loading of X libs on OpenBSD

The diff below for both SDL-1.2 and 2.0 fixes the dynamic
loading of the X libraries on OpenBSD.

diff -r 4a08ade5b4c9 configure.in
— a/configure.in Wed Jul 18 13:08:19 2012 -0700
+++ b/configure.in Wed Jul 18 16:20:08 2012 -0400
@@ -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'`]-- 
    

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Can you enter a bug in bugzilla with the patch attached?
http://bugzilla.libsdl.org/

Thanks!On Wed, Jul 18, 2012 at 4:25 PM, Brad Smith wrote:

The diff below for both SDL-1.2 and 2.0 fixes the dynamic
loading of the X libraries on OpenBSD.

diff -r 4a08ade5b4c9 configure.in
— a/configure.in Wed Jul 18 13:08:19 2012 -0700
+++ b/configure.in Wed Jul 18 16:20:08 2012 -0400
@@ -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’`]


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org