Skip to content
Commit 9870a93d authored by Pavel Roskin's avatar Pavel Roskin Committed by Sam Ravnborg
Browse files

kbuild: obj-dirs is calculated incorrectly if hostprogs-y is defined



When Makefile.host is included, $(obj-dirs) is subjected to the
addprefix operation for the second time.  Prefix only needs to be added
to the newly added directories, but not to those that came from
Makefile.lib.

This causes the build system to create unneeded empty directories in the
build tree when building in a separate directory.  For instance,
lib/lib/zlib_inflate is created in the build tree.

Signed-off-by: default avatarPavel Roskin <proski@gnu.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 1def630a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment