From 6a7f2e0d38901bdc8ec2c11b2bc94aa818ffddee Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 15 Nov 2013 14:43:45 -0500 Subject: [PATCH] fix: lttng-gen-tp: add missing spaces around flags Signed-off-by: Mathieu Desnoyers --- tools/lttng-gen-tp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index ed0c48fa..c49e8a52 100755 --- a/tools/lttng-gen-tp +++ b/tools/lttng-gen-tp @@ -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()) -- 2.34.1