fix: lttng-gen-tp: add missing spaces around flags
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Nov 2013 19:43:45 +0000 (14:43 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Nov 2013 19:53:18 +0000 (14:53 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tools/lttng-gen-tp

index ed0c48fa549973f844e4001cb99adbc2b8325959..c49e8a52355f44e7ded0abcce24acf3836e5ee3e 100755 (executable)
@@ -131,19 +131,19 @@ class ObjFile:
         if cc == "":
             raise RuntimeError("No C Compiler detected")
         if 'CPPFLAGS' in os.environ:
-            cppflags = os.environ['CPPFLAGS']
+            cppflags = " " + os.environ['CPPFLAGS']
         else:
             cppflags = ""
         if 'CFLAGS' in os.environ:
-            cflags = os.environ['CFLAGS']
+            cflags = " " + os.environ['CFLAGS']
         else:
             cflags = ""
         if 'LDFLAGS' in os.environ:
-            ldflags = os.environ['LDFLAGS']
+            ldflags = " " + os.environ['LDFLAGS']
         else:
             ldflags = ""
 
-        command = cc + " -c " + cppflags + cflags + ldflags + " -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())
This page took 0.025481 seconds and 4 git commands to generate.