Skip to content

Commit 3643b13

Browse files
mfwittenacmel
authored andcommitted
perf tools: Makefile: Clean up `python/perf.so' rule
There is no need for a subshell or an explicit `export'; as per the POSIX Shell Command Language specification: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01 http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_10_02 It is only necessary to include the environment variable assignment just before the command to be run. Also, it is better to use single-quotes, because GNU make might expand `$(BASIC_CFLAGS)' into something that the shell could interpret within double-quotes. Acked-by: Raghavendra D Prabhu <rprabhu@wnohang.net> Link: http://lkml.kernel.org/n/tip-58n38o02ocuzrm9qh096hsf5@git.kernel.org Signed-off-by: Michael Witten <mfwitten@gmail.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent aeafcba commit 3643b13

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎tools/perf/Makefile‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,10 @@ grep-libs = $(filter -l%,$(1))
165165
strip-libs = $(filter-out -l%,$(1))
166166

167167
$(OUTPUT)python/perf.so: $(PYRF_OBJS)
168-
$(QUIET_GEN)( \
169-
export CFLAGS="$(BASIC_CFLAGS)"; \
170-
python util/setup.py --quiet build_ext --build-lib='$(OUTPUT)python' \
171-
--build-temp='$(OUTPUT)python/temp' \
172-
)
173-
168+
$(QUIET_GEN)CFLAGS='$(BASIC_CFLAGS)' python util/setup.py \
169+
--quiet build_ext \
170+
--build-lib='$(OUTPUT)python' \
171+
--build-temp='$(OUTPUT)python/temp'
174172
#
175173
# No Perl scripts right now:
176174
#

0 commit comments

Comments
 (0)