[sr-dev] debian lib dir question

Juha Heinanen jh at tutpro.com
Mon May 11 13:02:55 CEST 2015


building of k debian package (jessie) sets LIBDIR like this:

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)

if the package is build on amd64 architecture, LIBDIR becomes
lib/x86_64-linux-gnu and on i386 architecture lib/i386-linux-gnu.

however, when the package is then installed on some host, how can the
loadpath for the modules be figured automatically out? dpkg-architecture
command cannot be used, because it is not installed unless the host is
used for software development.

i have tried 'uname -m', but sometimes on i386 arch, it gives i386 and
and sometimes i686.

-- juha



More information about the sr-dev mailing list