SHA256
3
0
forked from pool/cmake

Accepting request 710493 from home:marxin:branches:devel:tools:building

- Make %build_ldflags conditional.

OBS-URL: https://build.opensuse.org/request/show/710493
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=362
This commit is contained in:
Martin Pluskal 2019-06-18 07:15:56 +00:00 committed by Git OBS Bridge
parent c65c2dc33e
commit a5320c7660
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 18 07:07:37 UTC 2019 - Martin Liška <mliska@suse.cz>
- Make %build_ldflags conditional.
-------------------------------------------------------------------
Mon Jun 17 11:19:06 UTC 2019 - Martin Liška <mliska@suse.cz>

View File

@ -28,10 +28,10 @@
-DCMAKE_C_FLAGS="${CFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags} -DNDEBUG" \\\
-DCMAKE_Fortran_FLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}} -DNDEBUG" \\\
-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" \\\
-DCMAKE_STATIC_LINKER_FLAGS="%build_ldflags" \\\
-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" \\\
-DCMAKE_STATIC_LINKER_FLAGS="%{?build_ldflags}" \\\
%if "%{?_lib}" == "lib64" \
-DLIB_SUFFIX=64 \\\
%endif \