1
0
mirror of https://github.com/skeeto/w64devkit.git synced 2025-07-30 04:03:05 +03:00

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.
This commit is contained in:
Christopher Wellons
2020-05-11 23:43:20 -04:00
parent 462bf77e7b
commit 3fc9e65fb7

View File

@ -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/