linux-uconsole/tools/lib/traceevent
Sudip Mukherjee cb3b83a115 libtraceevent: Fix lib installation with O=
[ Upstream commit 587db8ebda ]

When we use 'O=' with make to build libtraceevent in a separate folder
it fails to install libtraceevent.a and libtraceevent.so.1.1.0 with the
error:

  INSTALL  /home/sudip/linux/obj-trace/libtraceevent.a
  INSTALL  /home/sudip/linux/obj-trace/libtraceevent.so.1.1.0

  cp: cannot stat 'libtraceevent.a': No such file or directory
  Makefile:225: recipe for target 'install_lib' failed
  make: *** [install_lib] Error 1

I used the command:

  make O=../../../obj-trace DESTDIR=~/test prefix==/usr  install

It turns out libtraceevent Makefile, even though it builds in a separate
folder, searches for libtraceevent.a and libtraceevent.so.1.1.0 in its
source folder.

So, add the 'OUTPUT' prefix to the source path so that 'make' looks for
the files in the correct place.

Signed-off-by: Sudipm Mukherjee <sudipm.mukherjee@gmail.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lore.kernel.org/lkml/20191115113610.21493-1-sudipm.mukherjee@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-12 12:17:06 +01:00
..
.gitignore tools lib traceevent: Ignore generated library files 2016-08-02 12:16:13 -03:00
Build tools lib traceevent: Use tools build framework 2015-02-12 17:55:38 -03:00
event-parse.c tools lib traceevent: Do not free tep->cmdlines in add_new_comm() on failure 2019-10-11 18:21:27 +02:00
event-parse.h tools lib traceevent: Rename various pevent APIs 2018-08-13 15:36:43 -03:00
event-plugin.c libtraceevent: Change users plugin directory 2019-10-05 13:09:53 +02:00
event-utils.h tools lib traceevent: Change to SPDX License format 2018-08-20 08:54:58 -03:00
kbuffer-parse.c tools lib traceevent: Change to SPDX License format 2018-08-20 08:54:58 -03:00
kbuffer.h tools lib traceevent: Add way to find sub buffer boundary 2015-03-24 12:22:09 -03:00
Makefile libtraceevent: Fix lib installation with O= 2020-01-12 12:17:06 +01:00
parse-filter.c libtraceevent: Fix memory leakage in copy_filter_type 2019-12-31 16:36:14 +01:00
parse-utils.c tools lib traceevent: Change to SPDX License format 2018-08-20 08:54:58 -03:00
plugin_cfg80211.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
plugin_function.c tools lib traceevent: Rename pevent_find_* APIs 2018-08-13 15:31:28 -03:00
plugin_hrtimer.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
plugin_jbd2.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
plugin_kmem.c tools lib traceevent: Rename pevent_find_* APIs 2018-08-13 15:31:28 -03:00
plugin_kvm.c tools lib traceevent: Rename various pevent get/set/is APIs 2018-08-13 15:35:02 -03:00
plugin_mac80211.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
plugin_sched_switch.c tools lib traceevent: Rename pevent field APIs 2018-08-13 15:30:30 -03:00
plugin_scsi.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
plugin_xen.c tools lib traceevent: Rename pevent_register / unregister APIs 2018-08-13 15:27:35 -03:00
trace-seq.c tools lib traceevent: Change to SPDX License format 2018-08-20 08:54:58 -03:00