forked from pool/cmake
Accepting request 710337 from home:marxin:branches:devel:tools:building
- Add -DCMAKE_STATIC_LINKER_FLAGS. - Add %build_ldflags to all LINKER_FLAGS. OBS-URL: https://build.opensuse.org/request/show/710337 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=361
This commit is contained in:
parent
bc778f04fc
commit
c65c2dc33e
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 17 11:19:06 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add -DCMAKE_STATIC_LINKER_FLAGS.
|
||||
- Add %build_ldflags to all LINKER_FLAGS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 14 00:54:57 UTC 2019 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
|
@ -28,9 +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="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\
|
||||
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed" \\\
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\
|
||||
-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 \
|
||||
|
Loading…
Reference in New Issue
Block a user