X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tools%2Flttng-gen-tp;h=a62107f7b2006fcd876901f85aed5df2d7d9cb8f;hb=d619cda8578e0d27ce0de14b09c4dc8e8056d534;hp=4ab91f367057ebf89290bb101e22039c650fd009;hpb=2982a6144602ed97dd9ec246124f1403ec7c83bc;p=lttng-ust.git diff --git a/tools/lttng-gen-tp b/tools/lttng-gen-tp index 4ab91f36..a62107f7 100755 --- a/tools/lttng-gen-tp +++ b/tools/lttng-gen-tp @@ -1,20 +1,8 @@ #!/usr/bin/env python # -# Copyright (c) 2012 Yannick Brosseau +# SPDX-License-Identifier: GPL-2.0-only # -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; only version 2 -# of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# Copyright (C) 2012 Yannick Brosseau from __future__ import print_function import sys @@ -150,12 +138,8 @@ class ObjFile: 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())