padsp: allow overriding library install location
authorFelipe Sateler <fsateler@debian.org>
Mon, 28 Nov 2016 17:49:06 +0000 (14:49 -0300)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 19 Jan 2017 01:00:45 +0000 (03:00 +0200)
commit9ce55be61047d685ccd0a141decf823fa68c62df
tree001cd95ee7a023d7482134df9047f6bd0d36732b
parent4bc753238f5775c23e2abd337e6372cfb7411fb8
padsp: allow overriding library install location

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.
configure.ac
src/Makefile.am
src/utils/padsp.in