[packages/rpm-pld-macros] - NDEBUG and QT_NO_DEBUG were no longer passed to cmake since adding set_build_flags; provide them f

qboosh qboosh at pld-linux.org
Wed Mar 26 21:41:23 CET 2025


commit 504a7c51befc039cb4bd4fdfc1ec84f372643a28
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 26 19:28:38 2025 +0100

    - NDEBUG and QT_NO_DEBUG were no longer passed to cmake since adding set_build_flags; provide them for all build systems via CPPFLAGS instead

 macros.pld | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/macros.pld b/macros.pld
index e5fb1c8..670f7bc 100644
--- a/macros.pld
+++ b/macros.pld
@@ -175,8 +175,8 @@ pakietu oraz przy odpluskwianiu samego pakietu.\
 %debugcppflags	%{nil}
 %debugldflags	%{nil}
 
-%optldflags	-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc %{?use_ld:-Wl,-fuse-ld=%{use_ld}}
-%optcppflags	%{nil}
+%optldflags		-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc %{?use_ld:-Wl,-fuse-ld=%{use_ld}}
+%optcppflags	-DNDEBUG -DQT_NO_DEBUG
 
 # common compilation flags
 %_fortify_cflags	-Wp,-D_FORTIFY_SOURCE=2
@@ -542,12 +542,12 @@ pakietu oraz przy odpluskwianiu samego pakietu.\
 	-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir} \\\
 	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
 	-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
-	-DCMAKE_CXX_FLAGS_PLD="${CXXFLAGS:-%{rpmcxxflags} -DNDEBUG -DQT_NO_DEBUG}" \\\
-	-DCMAKE_C_FLAGS_PLD="${CFLAGS:-%{rpmcflags} -DNDEBUG -DQT_NO_DEBUG}" \\\
-	-DCMAKE_Fortran_FLAGS_PLD="${FFLAGS:-%{rpmfflags} -DNDEBUG -DQT_NO_DEBUG}" \\\
-	-DCMAKE_EXE_LINKER_FLAGS_PLD="${LDFLAGS:-%{rpmldflags}}" \\\
-	-DCMAKE_SHARED_LINKER_FLAGS_PLD="${LDFLAGS:-%{rpmldflags}}" \\\
-	-DCMAKE_MODULE_LINKER_FLAGS_PLD="${LDFLAGS:-%{rpmldflags}}" \\\
+	-DCMAKE_CXX_FLAGS_PLD="${CXXFLAGS} ${CPPFLAGS}" \\\
+	-DCMAKE_C_FLAGS_PLD="${CFLAGS} ${CPPFLAGS}" \\\
+	-DCMAKE_Fortran_FLAGS_PLD="${FFLAGS} ${CPPFLAGS}" \\\
+	-DCMAKE_EXE_LINKER_FLAGS_PLD="${LDFLAGS}" \\\
+	-DCMAKE_SHARED_LINKER_FLAGS_PLD="${LDFLAGS}" \\\
+	-DCMAKE_MODULE_LINKER_FLAGS_PLD="${LDFLAGS}" \\\
 %if "%{_lib}" == "lib64" \
 	-DLIB_SUFFIX=64 \\\
 %endif \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/da40aca01c8cc576fbc76c10e845f2320d5e4a92



More information about the pld-cvs-commit mailing list