From 3fc9e65fb7bf9503fb130de5b7c3cefc51493beb Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Mon, 11 May 2020 23:43:20 -0400 Subject: [PATCH] Optimize GDB for size For some reason GDB is written in C but compiled as C++, so CFLAGS is ignored? Anyway, this *does* make it smaller. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index cdd842d..be68541 100644 --- a/Dockerfile +++ b/Dockerfile @@ -235,6 +235,7 @@ WORKDIR /gdb RUN /gdb-$GDB_VERSION/configure \ --host=x86_64-w64-mingw32 \ CFLAGS="-Os" \ + CXXFLAGS="-Os" \ LDFLAGS="-s" RUN make -j$(nproc) RUN cp gdb/gdb.exe $PREFIX/bin/