Toolchain: Build GCC with optimizations

This commit is contained in:
Gunnar Beutner 2021-04-20 23:15:43 +02:00 committed by Andreas Kling
parent 1e06a9b10f
commit d71f64b97f
Notes: sideshowbarker 2024-07-18 19:19:27 +09:00

View File

@ -31,8 +31,8 @@ SYSTEM_NAME="$(uname -s)"
# We *most definitely* don't need debug symbols in the linker/compiler.
# This cuts the uncompressed size from 1.2 GiB per Toolchain down to about 120 MiB.
# Hence, this might actually cause marginal speedups, although the point is to not waste space as blatantly.
export CFLAGS="-g0"
export CXXFLAGS="-g0"
export CFLAGS="-g0 -O2"
export CXXFLAGS="-g0 -O2"
if [ "$SYSTEM_NAME" = "OpenBSD" ]; then
MAKE=gmake