From: Jakub Bogusz Date: Mon, 4 Feb 2008 20:37:54 +0000 (+0000) Subject: - first try libdir (before */lib) when resolving sonames X-Git-Tag: auto/th/SDL-1_2_13-2~1 X-Git-Url: https://git.pld-linux.org/?p=packages%2FSDL.git;a=commitdiff_plain;h=4a8a20ca60bdb3bac9b25bec81ef7d3b8dfd777d - first try libdir (before */lib) when resolving sonames Changed files: SDL-libdir.patch -> 1.1 --- diff --git a/SDL-libdir.patch b/SDL-libdir.patch new file mode 100644 index 0000000..1036018 --- /dev/null +++ b/SDL-libdir.patch @@ -0,0 +1,33 @@ +--- SDL-1.2.13/configure.in.orig 2008-02-04 21:20:52.978398000 +0100 ++++ SDL-1.2.13/configure.in 2008-02-04 21:31:16.960293843 +0100 +@@ -348,7 +348,9 @@ + AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]), + , enable_alsa_shared=yes) + if test "x`echo $ALSA_LIBS | grep -- -L`" = "x"; then +- if test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then ++ if test "x`ls $libdir/libasound.so.* 2> /dev/null`" != "x"; then ++ ALSA_LIBS="-L$libdir $ALSA_LIBS" ++ elif test "x`ls /lib/libasound.so.* 2> /dev/null`" != "x"; then + ALSA_LIBS="-L/lib $ALSA_LIBS" + elif test "x`ls /usr/lib/libasound.so.* 2> /dev/null`" != "x"; then + ALSA_LIBS="-L/usr/lib $ALSA_LIBS" +@@ -501,7 +503,9 @@ + AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), + , enable_pulse_shared=yes) + if test "x`echo $PULSE_LIBS | grep -- -L`" = "x"; then +- if test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then ++ if test "x`ls $libdir/libpulse-simple.so.* 2> /dev/null`" != "x"; then ++ PULSE_LIBS="-L$libdir $PULSE_LIBS" ++ elif test "x`ls /lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then + PULSE_LIBS="-L/lib $PULSE_LIBS" + elif test "x`ls /usr/lib/libpulse-simple.so.* 2> /dev/null`" != "x"; then + PULSE_LIBS="-L/usr/lib $PULSE_LIBS" +@@ -561,7 +565,7 @@ + AC_ARG_ENABLE(arts-shared, + AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]), + , enable_arts_shared=yes) +- arts_lib_spec="$ARTS_PREFIX/lib/libartsc.so.*" ++ arts_lib_spec="$libdir/libartsc.so.*" + arts_lib=`ls -- $arts_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` + echo "-- $arts_lib_spec -> $arts_lib" +