diff --git a/cmake.changes b/cmake.changes index 77f5002..5648838 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 4 11:09:29 UTC 2018 - tchvatal@suse.com + +- Do not add no-undefined on module linking, should reduce us a bit + of redefining as most modules dynamically load stuff + ------------------------------------------------------------------- Wed Jan 3 22:06:52 UTC 2018 - virtuousfox@gmail.com diff --git a/cmake.macros b/cmake.macros index 138b7cc..681c8a6 100644 --- a/cmake.macros +++ b/cmake.macros @@ -29,7 +29,7 @@ -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 -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" \\\ %if "%{?_lib}" == "lib64" \ -DLIB_SUFFIX=64 \\\