]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix a bug of C++ host program handling
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 16 Jul 2014 07:12:20 +0000 (16:12 +0900)
committerMichal Marek <mmarek@suse.cz>
Wed, 16 Jul 2014 15:15:25 +0000 (17:15 +0200)
commitcc1822f631a26aaadb1c5067412059a144438eb8
treee0deeb4d35a78c8949e82e14b5997c248e832608
parente038e5ec9a947fbee7b671808bbe0af59b4bd8ec
kbuild: fix a bug of C++ host program handling

The comment claims:
  C++ executables compiled from at least one .cc file
  and zero or more .c files

But C++ executables with zero .c file fail in build.

For example, assume we have a Makefile like this:

  hostprogs-y := foo
  foo-cxxobjs := bar.o

In this case, foo is treated as host-csingle
and Kbuild tries to search non-existing foo.c source.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.host