From b0a34eab9633267e2a2da6e4b2b984725e68d158 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 8 Dec 2008 10:06:29 -0500 Subject: PR7062: base uprobes tree on s.runtime_path instead of PKGDATADIR --- buildrun.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'buildrun.cxx') diff --git a/buildrun.cxx b/buildrun.cxx index 9078a035..ece9eda4 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -172,8 +172,6 @@ compile_pass (systemtap_session& s) return rc; } -static const string uprobes_home = string(PKGDATADIR "/runtime/uprobes"); - /* * If uprobes was built as part of the kernel build (either built-in * or as a module), the uprobes exports should show up in either @@ -196,6 +194,7 @@ verify_uprobes_uptodate (systemtap_session& s) << "verifying that SystemTap's version of uprobes is up to date." << endl; + string uprobes_home = s.runtime_path + "/uprobes"; string make_cmd = string("make -q -C ") + uprobes_home + string(" uprobes.ko"); int rc = run_make_cmd(s, make_cmd); @@ -215,6 +214,7 @@ make_uprobes (systemtap_session& s) << "(re)building SystemTap's version of uprobes." << endl; + string uprobes_home = s.runtime_path + "/uprobes"; string make_cmd = string("make -C ") + uprobes_home; int rc = run_make_cmd(s, make_cmd); if (s.verbose > 1) @@ -230,6 +230,7 @@ make_uprobes (systemtap_session& s) static int copy_uprobes_symbols (systemtap_session& s) { + string uprobes_home = s.runtime_path + "/uprobes"; string cp_cmd = string("/bin/cp ") + uprobes_home + string("/Module.symvers ") + s.tmpdir; int rc = system (cp_cmd.c_str()); -- cgit