From: Michael Tremer Date: Mon, 5 Feb 2024 16:47:35 +0000 (+0000) Subject: make.sh: Compile with minimal debug information X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3a8be09df1098d2bb49cdeac6eb3ca8e7390650;p=people%2Fms%2Fipfire-2.x.git make.sh: Compile with minimal debug information 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 --- diff --git a/make.sh b/make.sh index 600db13347..345653ce2d 100755 --- 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}"