]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - scripts/Makefile.host
vt: fix cursor when clearing the screen
[thirdparty/linux.git] / scripts / Makefile.host
index 0393f75db4d4dfd542e49e947b203c50fd1a9022..a115259b57e7b117cb6a6038b3315ac0c883b7db 100644 (file)
@@ -67,13 +67,15 @@ _hostc_flags   = $(KBUILD_HOSTCFLAGS)   $(HOST_EXTRACFLAGS)   \
 _hostcxx_flags = $(KBUILD_HOSTCXXFLAGS) $(HOST_EXTRACXXFLAGS) \
                  $(HOSTCXXFLAGS_$(basetarget).o)
 
-ifeq ($(KBUILD_SRC),)
 __hostc_flags  = $(_hostc_flags)
 __hostcxx_flags        = $(_hostcxx_flags)
-else
+
+ifeq ($(KBUILD_EXTMOD),)
+ifneq ($(KBUILD_SRC),)
 __hostc_flags  = -I$(obj) $(call flags,_hostc_flags)
 __hostcxx_flags        = -I$(obj) $(call flags,_hostcxx_flags)
 endif
+endif
 
 hostc_flags    = -Wp,-MD,$(depfile) $(__hostc_flags)
 hostcxx_flags  = -Wp,-MD,$(depfile) $(__hostcxx_flags)