perf tools: Move libtraceevent dynamic list to separated LDFLAGS variable
authorWang Nan <[email protected]>
Wed, 17 Jun 2015 14:46:29 +0000 (14:46 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 17 Jun 2015 19:29:25 +0000 (16:29 -0300)
commit5d618324dd4442d20dbdb039176787199ba2f12b
tree973f1f95e968fa516a0df2ee1f1f8f17100bfe5a
parentb30b617292462ca7ee68834b117a7833f4a52e16
perf tools: Move libtraceevent dynamic list to separated LDFLAGS variable

Commit e3d09ec8126fe2c9a3ade661e2126e215ca27a80 ("tools lib traceevent:
Export dynamic symbols used by traceevent plugins") adds libtraceevent
dynamic list directly into LDFLAGS, which makes all targets depend on
that list through LDFLAGS.

This is not good since some of targets like libgtk.so doesn't use plugin
at all, but require the existance of that list because of linker
options.

This patch isolates the -Xlink option into LIBTRACEEVENT_DYNAMIC_LIST_LDFLAGS,
makes only perf and perf.so use it.

Signed-off-by: Wang Nan <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile.perf