On Mon, 2016-11-28 at 14:49 -0300, Felipe Sateler wrote: > The current build script hardcodes the $pkglibdir in the padsp command. > This works and is a reasonable default. However, distributions that > know where they install, can override this path and thus make padsp > work for any architecture that has the library installed by using the > following configure argument: > > --with-pulsedsp-location='/usr/\\$$LIB/pulseaudio' > > This works because ld.so considers $LIB a variable that will expand to > several location paths, depending on the architecture of the binary > being executed. > > In debian, for example, this would work for libpulsedsp.so installed in > /usr/lib/x86_64-linux-gnu/ for amd64 and /usr/lib/i386-linux-gnu/ for > i386, with a single padsp command. > > --- > > The idea is that pulseaudio-utils package can provide the padsp command, and > the dsp wrapper for multiple architecture can be co-installed. Then the loader > does the job of picking which library to use according to the running program's > architecture. > > --- > configure.ac | 8 ++++++++ > src/Makefile.am | 2 +- > src/utils/padsp.in | 4 ++-- > 3 files changed, 11 insertions(+), 3 deletions(-) Thanks! Applied to the "next" branch. -- Tanu https://www.patreon.com/tanuk