summaryrefslogtreecommitdiffstats
path: root/dtrace.in
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-08-18 10:50:05 -0400
committerStan Cox <scox@redhat.com>2009-08-18 10:50:05 -0400
commite4c3091f27b43a631dfbdb1ada1b121f8e581cd2 (patch)
tree8e64c15dd42d274e7217dc8b0c91d823282e1d19 /dtrace.in
parent21c38ccc872a9b8c340e15545dc37ff8474f4109 (diff)
downloadsystemtap-steved-e4c3091f27b43a631dfbdb1ada1b121f8e581cd2.tar.gz
systemtap-steved-e4c3091f27b43a631dfbdb1ada1b121f8e581cd2.tar.xz
systemtap-steved-e4c3091f27b43a631dfbdb1ada1b121f8e581cd2.zip
* dtrace.in: Honor the dirname for the output file.
* testsuite/systemtap.base/dtrace.exp: New test.
Diffstat (limited to 'dtrace.in')
-rwxr-xr-xdtrace.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/dtrace.in b/dtrace.in
index 168bfb18..990d62fe 100755
--- a/dtrace.in
+++ b/dtrace.in
@@ -175,10 +175,9 @@ if (build_header):
providers.generate(s_filename, filename + h_ext, add_typedefs)
elif (build_source):
(basename,ext) = os.path.splitext(s_filename)
- basename = os.path.basename(basename)
(d,fn) = mkstemp(suffix=".c",prefix=basename)
f = open(fn,mode='w')
f.write("static __dtrace () {}\n")
f.close()
- call(["gcc", "-fPIC", "-I.", "-I@prefix@/include", "-g", "-c", fn, "-o", os.path.basename(filename) + ".o"], shell=False)
+ call(["gcc", "-fPIC", "-I.", "-I@prefix@/include", "-g", "-c", fn, "-o", filename + ".o"], shell=False)
os.remove(fn)