From 9c9a6b8088e1539e235caa82371300147800f10c Mon Sep 17 00:00:00 2001 From: Mircho Rodozov Date: Wed, 1 Sep 2021 12:11:59 +0300 Subject: [PATCH] ThePEG - remove `-g` flag from the compilation This removes the default CXXFLAGS="-g -O2" (same for CFLAGS) to -g0 -O2 -DNDEBUG to keep the optimization, set debug info to 0 and remove assertions if any The original lib is 123 mb, the resulting new one 6512 bytes without further check whats in it (if any debug flags remain) The debug info for the failing job is reduced --- thepeg.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thepeg.spec b/thepeg.spec index 3817c6f83a3..e9a6b925ded 100644 --- a/thepeg.spec +++ b/thepeg.spec @@ -53,7 +53,7 @@ sed -i -e "s|-lgslcblas|-lopenblas|" ./configure --with-fastjet=$FASTJET_ROOT \ --without-javagui \ --prefix=%{i} \ - --disable-readline CXX="$CXX" CC="$CC" LDFLAGS="-L${OPENBLAS_ROOT}/lib" + --disable-readline CXX="$CXX" CC="$CC" LDFLAGS="-L${OPENBLAS_ROOT}/lib" CXXFLAGS="-g0 -O2 -DNDEBUG" CFLAGS="-g0 -O2 -DNDEBUG" make %{makeprocesses}