Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: Avoid uneeded linking/unused libraries in some dwarves librari…
…es and executables currently mandriva has a packaging script which checks for uneeded linking in package built files. For dwarves, it displays: Warning: unused libraries in /usr/lib64/libdwarves_reorganize.so.1.0.0: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/lib64/libdwarves_emit.so.1.0.0: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/ctracer: libz.so.1 libdw.so.1 Warning: unused libraries in /usr/bin/syscse: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/pglobal: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/pdwtags: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/prefcnt: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/pfunct: libz.so.1 libdw.so.1 Warning: unused libraries in /usr/bin/pahole: libz.so.1 libdw.so.1 libelf.so.1 Warning: unused libraries in /usr/bin/dtagnames: libdw.so.1 libelf.so.1 libz.so.1 Warning: unused libraries in /usr/bin/codiff: libdw.so.1 libelf.so.1 libz.so.1 The patch below fixes the issue (removing uneeded specified libraries and using LINK_INTERFACE_LIBRARIES property, see http://www.cmake.org/Wiki/CMake_FAQ#Why_are_libraries_linked_to_my_shared_library_included_when_something_links_to_it.3F) Signed-off-by: Herton Ronaldo Krzesinski <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
- Loading branch information