Skip to content

Commit

Permalink
Dockerfile: manualy set LIMITS_H_TEST=true to fix limits.h include order
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bernhard-guillon-copadata authored and Pro committed Jul 28, 2021
1 parent 025f741 commit 87b08f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 87b08f1

Please sign in to comment.