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:
@ -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/
|
||||
|
Reference in New Issue
Block a user