X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tools%2Flttng-gen-tp;h=ed0c48fa549973f844e4001cb99adbc2b8325959;hb=170423b056ecdef441820a54be350605e4dc8951;hp=1b8439f3c71258bfaac2b3bd29358904401800f6;hpb=9ec23f2e52b3b0bd8b80afbe2e8e8ae1ab222c6b;p=lttng-ust.git diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index 1b8439f3..ed0c48fa 100755 --- 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") + if 'CPPFLAGS' in os.environ: + cppflags = os.environ['CPPFLAGS'] + else: + cppflags = "" 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 " + cppflags + cflags + ldflags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename if verbose: print("Compile command: " + command) subprocess.call(command.split())