SHA256
3
0
forked from pool/cmake

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

- Make %cmake_build insert RELWITHDEBINFO CFLAGS as well to avoid
  projects overriding our %optflags with some cmake default.

OBS-URL: https://build.opensuse.org/request/show/1104229
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=547
This commit is contained in:
Simon Lees 2023-08-17 02:09:25 +00:00 committed by Git OBS Bridge
parent 80d928be19
commit f149f52acc
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 16 17:44:46 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Make %cmake_build insert RELWITHDEBINFO CFLAGS as well to avoid
projects overriding our %optflags with some cmake default.
-------------------------------------------------------------------
Sat Aug 12 12:38:42 UTC 2023 - Christoph G <foss@grueninger.de>

View File

@ -38,8 +38,11 @@
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags}" \\\
-DCMAKE_C_FLAGS_RELWITHDEBINFO="${CFLAGS:-%optflags}" \\\
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags}" \\\
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="${CXXFLAGS:-%optflags}" \\\
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" \\\
-DCMAKE_Fortran_FLAGS_RELWITHDEBINFO="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" \\\
-DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\
-DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \\\
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\