kbuild: properly pass options to hostcc when doing make O=..
authorSam Ravnborg <sam@mars.ravnborg.org>
Fri, 7 Apr 2006 06:36:49 +0000 (08:36 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Fri, 7 Apr 2006 06:36:49 +0000 (08:36 +0200)
commitd9df92e22aca939857c5bc9ecb130ef22307ccc1
treede428ec711fe241f3ad7ac1272ba8591d68d9fc2
parent7d2d8fe0cb88914d26219db51341d780a032b198
kbuild: properly pass options to hostcc when doing make O=..

This fix a longstanding bug where proper options was not
passed to hostcc in case of a make O=.. build.
This bug showed up in (not yet merged) klibc, and is not known
to have any counterpart in-kernel.
Fixed by moving the flags macro to Kbuild.include so it can be used
by both Makefile.lib and Makefile.host.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/Kbuild.include
scripts/Makefile.lib