forked from pool/cmake
Accepting request 1135592 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1135592 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=244
This commit is contained in:
commit
0ef0a99fb9
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 27 12:56:45 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Re-add "-Wl,--no-undefined" linker flags for executables and
|
||||
regular shared libraries. Shared library targets which are used
|
||||
as plugins/modules should use `add_library(... MODULE ...), which
|
||||
uses the "CMAKE_MODULE_LINKER_FLAGS".
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 14 21:06:23 UTC 2023 - Christoph G <foss@grueninger.de>
|
||||
|
||||
|
@ -40,9 +40,9 @@
|
||||
-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,-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,-z,now" \\\
|
||||
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now" \\\
|
||||
%if "%{?_lib}" == "lib64" \
|
||||
-DLIB_SUFFIX=64 \\\
|
||||
%endif \
|
||||
|
Loading…
Reference in New Issue
Block a user