Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ninja: Revert accidental LINK_WHAT_YOU_USE impl for static libraries | Đoàn Trần Công Danh | 2021-08-03 | 4 | -0/+10 |
| | | | | | | | | | | | In commit d7159f9591, (Ninja: Fix LINK_WHAT_YOU_USE link flag placement, 2021-06-24), we fixed usage of -Wl,--no-as-needed to override -Wl,--as-needed from LDFLAGS. However, that change also passes -Wl,--no-as-needed to `ar`, which is incorrect flag for `ar`. Let's check the target type before passing down the flags. Fixes: #22487 | ||||
* | Add options to run `ldd -u -r` as a "link-what-you-use" tool | Bill Hoffman | 2016-06-17 | 12 | -0/+54 |
Create a LINK_WHAT_YOU_USE target property and corresponding CMAKE_LINK_WHAT_YOU_USE variable to enable this behavior. Extend link commands by running `ldd -u -r` to detect shared libraries that are linked but not needed. |