Blame SOURCES/pulseaudio-multilib.patch

2b72d0
diff -up pulseaudio-3.0/src/utils/padsp.in.multlib pulseaudio-3.0/src/utils/padsp.in
2b72d0
--- pulseaudio-3.0/src/utils/padsp.in.multlib	2013-11-04 22:19:08.237932335 -0500
2b72d0
+++ pulseaudio-3.0/src/utils/padsp.in	2013-11-04 22:20:48.058900664 -0500
2b72d0
@@ -75,10 +75,21 @@ done
2b72d0
 
2b72d0
 shift $(( $OPTIND - 1 ))
2b72d0
 
2b72d0
+ARCH=$(uname -m)
2b72d0
+
2b72d0
+case $ARCH in
2b72d0
+  x86_64 | sparc64 | s390x | ppc64)
2b72d0
+  LIB_DIR=/usr/lib64
2b72d0
+  ;;
2b72d0
+  *)
2b72d0
+  LIB_DIR=/usr/lib
2b72d0
+  ;;
2b72d0
+esac
2b72d0
+
2b72d0
 if [ x"$LD_PRELOAD" = x ] ; then
2b72d0
-   LD_PRELOAD="@pkglibdir@/libpulsedsp.so"
2b72d0
+   LD_PRELOAD="$LIBDIR/pulseaudio/libpulsedsp.so"
2b72d0
 else
2b72d0
-   LD_PRELOAD="$LD_PRELOAD @pkglibdir@/libpulsedsp.so"
2b72d0
+   LD_PRELOAD="$LD_PRELOAD $LIBDIR/pulseaudio/libpulsedsp.so"
2b72d0
 fi
2b72d0
 
2b72d0
 export LD_PRELOAD