libtraceevent: Allow custom libdir path
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 7 Dec 2019 11:14:40 +0000 (11:14 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Dec 2019 16:40:26 +0000 (13:40 -0300)
commitc09982f8e2bae80a66232630ec4ba50afacea486
tree8d4369826f608a2bd8705a3693b03b0fb914c1a9
parent28707826877f84bce0977845ea529cbdd08e4e8d
libtraceevent: Allow custom libdir path

When I use prefix=/usr and try to install libtraceevent in my laptop it
tries to install in /usr/lib64. I am not having any folder as /usr/lib64
and also the debian policy doesnot allow installing in /usr/lib64. It
should be in /usr/lib/x86_64-linux-gnu/.

Quote: No package for a 64 bit architecture may install files in
/usr/lib64/ or in a subdirectory of it.

ref: https://www.debian.org/doc/debian-policy/ch-opersys.html

Make it more flexible by allowing to mention libdir_relative while
installing so that distros can mention the path according to their
policy or use the default one.

Signed-off-by: Sudipm Mukherjee <sudipm.mukherjee@gmail.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Sudipm Mukherjee <sudipm.mukherjee@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lore.kernel.org/lkml/20191207111440.6574-1-sudipm.mukherjee@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/Makefile
tools/lib/traceevent/plugins/Makefile