From 11c0e009438f0c5d7a07aa888baaafb1c38d75cc Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Tue, 20 Oct 2020 13:21:14 -0400 Subject: [PATCH] Also optimize the bootstrap CRT by size --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d7989c3..ff0fea3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -99,7 +99,9 @@ WORKDIR /x-mingw-crt RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-crt/configure \ --prefix=/bootstrap/x86_64-w64-mingw32 \ --with-sysroot=/bootstrap/x86_64-w64-mingw32 \ - --host=x86_64-w64-mingw32 + --host=x86_64-w64-mingw32 \ + CFLAGS="-Os" \ + LDFLAGS="-s" RUN make -j$(nproc) RUN make install