LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File padsp-biarch.patch of Package pulseaudio (Project home:Ximi1970:branches:openSUSE:Leap:42.3:Update)

---
 src/Makefile.am    |    5 ++++-
 src/utils/padsp.in |    6 ++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

--- a/src/utils/padsp.in
+++ b/src/utils/padsp.in
@@ -73,10 +73,12 @@ done
 
 shift $(( $OPTIND - 1 ))
 
+prefix=@prefix@
+exec_prefix=@exec_prefix@
 if [ x"$LD_PRELOAD" = x ] ; then
-   LD_PRELOAD="@pkglibdir@/libpulsedsp.so"
+   LD_PRELOAD="${exec_prefix}/\$LIB/@PACKAGE@/libpulsedsp.so"
 else
-   LD_PRELOAD="$LD_PRELOAD @pkglibdir@/libpulsedsp.so"
+   LD_PRELOAD="$LD_PRELOAD ${exec_prefix}/\$LIB/@PACKAGE@/libpulsedsp.so"
 fi
 
 export LD_PRELOAD
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -901,7 +901,10 @@ padsplib_LTLIBRARIES = libpulsedsp.la
 bin_SCRIPTS += padsp
 
 edit = @SED@ \
-       -e "s|@pkglibdir[@]|$(pkglibdir)|g"
+       -e "s|@pkglibdir[@]|$(pkglibdir)|g" \
+       -e "s|@prefix[@]|$(prefix)|g" \
+       -e "s|@exec_prefix[@]|$(exec_prefix)|g" \
+       -e "s|@PACKAGE[@]|$(PACKAGE)|g"
 
 padsp: utils/padsp.in
 	$(edit) $< > $@