kbuild: enable 'make CFLAGS=...' to add additional options to CC
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / x86 / vdso / Makefile
index 8d03de029d9b38d321428bea5e127eae6b274287..dcd6bb9e0bb371597da18aabaadc76474e898e2f 100644 (file)
@@ -34,8 +34,8 @@ $(obj)/vdso.so: $(src)/vdso.lds $(vobjs) FORCE
 
 CFL := $(PROFILING) -mcmodel=small -fPIC -g0 -O2 -fasynchronous-unwind-tables -m64
 
-$(obj)/vclock_gettime.o: CFLAGS = $(CFL)
-$(obj)/vgetcpu.o: CFLAGS = $(CFL)
+$(obj)/vclock_gettime.o: KBUILD_CFLAGS = $(CFL)
+$(obj)/vgetcpu.o: KBUILD_CFLAGS = $(CFL)
 
 # We also create a special relocatable object that should mirror the symbol
 # table and layout of the linked DSO.  With ld -R we can then refer to