forked from pool/cmake
Accepting request 1124704 from home:dimstar:Factory
Revert that cmake macro stuff that has been causing grieph since August Once a proper solution is found, things like this can be re-attempted, but for now we need a solution to move forward with newer cmake versions for zlib 1.3 compatibility OBS-URL: https://build.opensuse.org/request/show/1124704 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=552
This commit is contained in:
parent
92274bd9cc
commit
674068c525
@ -1,9 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Fri Oct 20 07:25:25 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
|
|
||||||
|
|
||||||
- Stick -DNDEBUG back into CMAKE_C_FLAGS. Can't find a spontaneous
|
|
||||||
resolution for projects relying on its presence.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 13 08:06:23 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
Fri Oct 13 08:06:23 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||||
|
|
||||||
@ -35,12 +29,6 @@ Wed Aug 23 20:04:25 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>
|
|||||||
* Graphviz: Restore support for per-target dependency graph options
|
* Graphviz: Restore support for per-target dependency graph options
|
||||||
* FindOpenSSL: Fix OpenSSL 3.0.0 version extraction
|
* FindOpenSSL: Fix OpenSSL 3.0.0 version extraction
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
Sat Aug 12 12:38:42 UTC 2023 - Christoph G <foss@grueninger.de>
|
||||||
|
|
||||||
|
14
cmake.macros
14
cmake.macros
@ -10,11 +10,6 @@
|
|||||||
%__cmake_make_prefix_relative() %{lua:print((string.gsub((rpm.expand("%1")), ((rpm.expand("%{_prefix}")) .. "/"), "", 1)))}
|
%__cmake_make_prefix_relative() %{lua:print((string.gsub((rpm.expand("%1")), ((rpm.expand("%{_prefix}")) .. "/"), "", 1)))}
|
||||||
%__cmake_make_root_relative() %{lua:print((string.gsub((rpm.expand("%1")), "/", "", 1)))}
|
%__cmake_make_root_relative() %{lua:print((string.gsub((rpm.expand("%1")), "/", "", 1)))}
|
||||||
|
|
||||||
#
|
|
||||||
# Some cmake-using software has an unfortunate reliance on -DNDEBUG being
|
|
||||||
# present (when cmake is used without explicitly selecting a build type or
|
|
||||||
# cflags). Cf. https://bugzilla.redhat.com/show_bug.cgi?id=1692426
|
|
||||||
#
|
|
||||||
%cmake \
|
%cmake \
|
||||||
find %__sourcedir -type f -name CMakeLists.txt \\\
|
find %__sourcedir -type f -name CMakeLists.txt \\\
|
||||||
-exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \
|
-exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \
|
||||||
@ -42,12 +37,9 @@
|
|||||||
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
|
-DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
|
||||||
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
|
-DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
|
||||||
-DCMAKE_C_FLAGS="-DNDEBUG ${CFLAGS:-%optflags}" \\\
|
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags}" \\\
|
||||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG ${CFLAGS:-%optflags}" \\\
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags}" \\\
|
||||||
-DCMAKE_CXX_FLAGS="${CXXFLAGS:--DNDEBUG %optflags}" \\\
|
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" \\\
|
||||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="${CXXFLAGS:--DNDEBUG %optflags}" \\\
|
|
||||||
-DCMAKE_Fortran_FLAGS="${FFLAGS:--DNDEBUG %optflags%{?_fmoddir: -I%_fmoddir}}" \\\
|
|
||||||
-DCMAKE_Fortran_FLAGS_RELWITHDEBINFO="${FFLAGS:--DNDEBUG %optflags%{?_fmoddir: -I%_fmoddir}}" \\\
|
|
||||||
-DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\
|
-DCMAKE_EXE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\
|
||||||
-DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \\\
|
-DCMAKE_MODULE_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed" \\\
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\
|
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now" \\\
|
||||||
|
Loading…
Reference in New Issue
Block a user