diff options
author | Stan Cox <scox@redhat.com> | 2009-08-18 10:50:05 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-08-18 10:50:05 -0400 |
commit | e4c3091f27b43a631dfbdb1ada1b121f8e581cd2 (patch) | |
tree | 8e64c15dd42d274e7217dc8b0c91d823282e1d19 /dtrace.in | |
parent | 21c38ccc872a9b8c340e15545dc37ff8474f4109 (diff) | |
download | systemtap-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-x | dtrace.in | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |