From 87b08f1712c0dab1f6a142e3b32acece17283ac0 Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Mon, 7 Jun 2021 20:22:10 +0200 Subject: [PATCH] Dockerfile: manualy set LIMITS_H_TEST=true to fix limits.h include order This patch is taken from chromium.org https://src.chromium.org/viewvc/native_client/trunk/src/native_client/toolchain_build/toolchain_build.py?r1=10387&r2=10386&pathrev=10387 Original patch description: gcc/Makefile's install rules ordinarily look at the installed include directory for a limits.h to decide whether the lib/gcc/.../include-fixed/limits.h header should be made to expect a libc-supplied limits.h or not. Since we're doing this build in a clean environment without any libc installed, we need to force its hand here. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0cebda7..56e2e2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,7 +63,7 @@ RUN ../${GCC_VERSION}/configure \ --enable-languages=c,c++,fortran \ --with-arch=armv6 --with-fpu=vfp --with-float=hard \ --disable-multilib -RUN make -j$(nproc) all-gcc +RUN make -j$(nproc) 'LIMITS_H_TEST=true' all-gcc RUN make install-gcc ENV PATH=/opt/cross-pi-gcc/bin:${PATH}