Hello,
On 11/05/15 13:02, Juha Heinanen wrote:
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.
'kamailio -I' (uppercase i) is printing several details, including the default path to modules. Maybe that is sufficient for what you need or you can do some shell scripting to extract only the modules path.
Cheers, Daniel