From: Andre Heider Date: Thu, 20 Aug 2020 06:06:37 +0000 (+0200) Subject: tools: always create $STAGING_DIR/usr/{include,lib} X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5090152ae3a37482dc1e8290875635305abf12a7;p=openwrt%2Fstaging%2Fynezz.git tools: always create $STAGING_DIR/usr/{include,lib} 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 Acked-by: Paul Spooren Acked-by: Rosen Penev [fixed merge conflict] Signed-off-by: Petr Štetiar (cherry picked from commit b0cb305236524095bfd899449b0ad8eb821cb3bb) --- diff --git a/tools/Makefile b/tools/Makefile index d7207ba89d..b8d986b80c 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 include stamp; \ + mkdir -p bin lib include stamp usr/include usr/lib; \ ); done endef