Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / tools / perf / Makefile
index 158c30e8210c64f7bde2915a7fee4700ee6a4cdd..207dee5c5b163fd51ceafbb6b171df9c0708893f 100644 (file)
@@ -165,8 +165,12 @@ grep-libs = $(filter -l%,$(1))
 strip-libs = $(filter-out -l%,$(1))
 
 $(OUTPUT)python/perf.so: $(PYRF_OBJS)
-       $(QUIET_GEN)python util/setup.py --quiet  build_ext --build-lib='$(OUTPUT)python' \
-                                               --build-temp='$(OUTPUT)python/temp'
+       $(QUIET_GEN)( \
+               export CFLAGS="$(BASIC_CFLAGS)"; \
+               python util/setup.py --quiet  build_ext --build-lib='$(OUTPUT)python' \
+                       --build-temp='$(OUTPUT)python/temp' \
+       )
+
 #
 # No Perl scripts right now:
 #