SHA256
3
0
forked from pool/cmake

Accepting request 979615 from home:jengelh:branches:devel:tools:building

- Edit cmake.macros: Stop injecting -DNDEBUG at the end of
  CFLAGS. It's impossible to override by re-setting CFLAGS, and
  if it were really wanted globally, it should be in %optflags
  instead.

OBS-URL: https://build.opensuse.org/request/show/979615
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=491
This commit is contained in:
Dirk Mueller 2022-06-04 08:14:02 +00:00 committed by Git OBS Bridge
parent 6c892ff060
commit e1450897b2
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat May 28 18:54:48 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Edit cmake.macros: Stop injecting -DNDEBUG at the end of
CFLAGS. It's impossible to override by re-setting CFLAGS, and
if it were really wanted globally, it should be in %optflags
instead.
-------------------------------------------------------------------
Wed Apr 13 20:48:21 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -26,9 +26,9 @@
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \\\
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \\\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} -DNDEBUG" \\\
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags}" \\\
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags}" \\\
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" \\\
-DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\
-DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \\\
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\