The lttng-gen-tp scripts appends the content of the LDFLAGS variable to
the cc command use to compile object files, this is unnecessary since we
are not linking an executable or shared object and will generate
warnings with recent clang.
Change-Id: I87812028f145e0fc3848cf9d58de998abc98e57e
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
@if $(AM_V_P); then set -x; else echo " CC $@"; fi; \
CPPFLAGS="$(AM_CPPFLAGS) $(CPPFLAGS)" \
CFLAGS="$(AM_CFLAGS) $(CFLAGS)" \
- LDFLAGS="$(AM_LDFLAGS) $(LDFLAGS)" \
CC="$(CC)" \
$(PYTHON) $(LTTNG_GEN_TP_PATH)lttng-gen-tp -o $@ $<
cflags = " " + os.environ['CFLAGS']
else:
cflags = ""
- if 'LDFLAGS' in os.environ:
- ldflags = " " + os.environ['LDFLAGS']
- else:
- ldflags = ""
- command = cc + " -c" + cppflags + cflags + ldflags + " -I. -llttng-ust" + " -o " + self.outputFilename + " " + cFilename
+ command = cc + " -c" + cppflags + cflags + " -I. -o " + self.outputFilename + " " + cFilename
if verbose:
print("Compile command: " + command)
subprocess.call(command.split())