[PATCH] tools: always create $STAGING_DIR/usr/{include,lib}
Rosen Penev
rosenp at gmail.com
Sun Aug 23 23:21:41 EDT 2020
On Sun, Aug 23, 2020 at 8:02 PM Paul Spooren <mail at aparcar.org> wrote:
>
> On 19.08.20 20:06, Andre Heider wrote:
> > rules.mk always passes these as -I/-L to the toolchain.
> >
> > Fixes rare errors like:
> > cc1: error: staging_dir/target-aarch64_cortex-a53_musl/usr/include: No such file or directory [-Werror=missing-include-dirs]
> >
> > Signed-off-by: Andre Heider <a.heider at gmail.com>
>
> Acked-by: Paul Spooren <mail at aparcar.org>
Acked-by: Rosen Penev <rosenp at gmail.com>
I've constantly had this issue. I never investigated why.
>
> > ---
> > tools/Makefile | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/Makefile b/tools/Makefile
> > index f038c90ba9..325c0995ee 100644
> > --- a/tools/Makefile
> > +++ b/tools/Makefile
> > @@ -123,7 +123,7 @@ define PrepareStaging
> > $(if $(QUIET),,set -x;) \
> > mkdir -p "$$dir"; \
> > cd "$$dir"; \
> > - mkdir -p bin lib stamp; \
> > + mkdir -p bin lib stamp usr/include usr/lib; \
> > ); done
> > endef
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list