Messages in this thread | | | From | Masahiro Yamada <> | Date | Thu, 27 Jan 2022 20:25:53 +0900 | Subject | Re: [PATCH] kbuild: Add environment variables for userprogs flags |
| |
On Thu, Jan 27, 2022 at 3:21 AM Nick Desaulniers <ndesaulniers@google.com> wrote:
> > > > > config CC_HAS_ASM_GOTO > > def_bool $(success,$(srctree)/scripts/gcc-goto.sh $(CC)) > > diff --git a/usr/include/Makefile b/usr/include/Makefile > > index 1c2ae1368079..6a8c7dd9ccaf 100644 > > --- a/usr/include/Makefile > > +++ b/usr/include/Makefile > > @@ -12,6 +12,9 @@ UAPI_CFLAGS := -std=c90 -Wall -Werror=implicit-function-declaration > > # It is here just because CONFIG_CC_CAN_LINK is tested with -m32 or -m64. > > UAPI_CFLAGS += $(filter -m32 -m64, $(KBUILD_CFLAGS)) > > > > +# USERCFLAGS might contain sysroot location for CC > > +UAPI_CFLAGS += $(USERCFLAGS) > > + > Do we need to worry about USERLDFLAGS here, too? (or usr/Makefile?)
I do not think so.
usr/include/Makefile does not link the objects.
( $(CC) -S stops after the compilation stage)
-- Best Regards Masahiro Yamada
| |