projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools/lttng-gen-tp: honor CPPFLAGS and LDFLAGS
[lttng-ust.git]
/
tools
/
lttng-gen-tp
diff --git
a/tools/lttng-gen-tp
b/tools/lttng-gen-tp
index 1b8439f3c71258bfaac2b3bd29358904401800f6..ed0c48fa549973f844e4001cb99adbc2b8325959 100755
(executable)
--- a/
tools/lttng-gen-tp
+++ b/
tools/lttng-gen-tp
@@
-130,12
+130,20
@@
class ObjFile:
cc = self._detectCC()
if cc == "":
raise RuntimeError("No C Compiler detected")
cc = self._detectCC()
if cc == "":
raise RuntimeError("No C Compiler detected")
+ if 'CPPFLAGS' in os.environ:
+ cppflags = os.environ['CPPFLAGS']
+ else:
+ cppflags = ""
if 'CFLAGS' in os.environ:
cflags = os.environ['CFLAGS']
else:
cflags = ""
if 'CFLAGS' in os.environ:
cflags = os.environ['CFLAGS']
else:
cflags = ""
+ if 'LDFLAGS' in os.environ:
+ ldflags = os.environ['LDFLAGS']
+ else:
+ ldflags = ""
- command = cc + " -c " + cflags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename
+ command = cc + " -c " + c
ppflags + cflags + ld
flags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename
if verbose:
print("Compile command: " + command)
subprocess.call(command.split())
if verbose:
print("Compile command: " + command)
subprocess.call(command.split())
This page took
0.025359 seconds
and
4
git commands to generate.