]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
make.sh: Compile with minimal debug information
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Feb 2024 16:47:35 +0000 (16:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Feb 2024 14:23:59 +0000 (14:23 +0000)
In IPFire 2, we don't make any use out of the debug information.
Therefore we can tell the compiler to generate as minimal debug
information as possible in order to have a faster compilation process.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 8b4224646a628e8d2287ee1d0998e15bacf1bcfa..ab7e0911fca2601ee5dc63c4cfd5d1cfd22e1a83 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -184,7 +184,7 @@ configure_build() {
        # Enables hardening
        HARDENING_CFLAGS="-Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection"
 
-       CFLAGS="-O2 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
+       CFLAGS="-O2 -g0 -pipe -Wall -fexceptions -fPIC ${CFLAGS_ARCH}"
        CXXFLAGS="${CFLAGS}"
 
        RUSTFLAGS="-Copt-level=3 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1 --cap-lints=warn ${RUSTFLAGS_ARCH}"