diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-07-31 07:17:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-08-03 15:21:26 (GMT) |
commit | 93eb4a7bd17f0da02a5ea71426bed5c2056e9ea0 (patch) | |
tree | d3efd0740fa33f0afb68c868df99bea3482601ab /CMakeLists.txt | |
parent | f7cf69e34a1607e8ea2b6d10fef6a6058377c24e (diff) | |
download | CMake-93eb4a7bd17f0da02a5ea71426bed5c2056e9ea0.zip CMake-93eb4a7bd17f0da02a5ea71426bed5c2056e9ea0.tar.gz CMake-93eb4a7bd17f0da02a5ea71426bed5c2056e9ea0.tar.bz2 |
Ninja: Revert accidental LINK_WHAT_YOU_USE impl for static libraries
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
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions