Before cmake 3.14, the -pie linker flag needs to be added manually. It
is currently applied to all targets, despite it is only useful when
linking exectuables. This causes clang to raise a
-Wunused-command-line-argument warning. This diff filters the -pie
flag better to get rid of this warning.
Details
Details
- Reviewers
majcosta - Group Reviewers
Restricted Project - Commits
- rABC8298f7e118df: Fix unused -pie flag for libs
With clang as a compiler:
ninja all security-check
Check the warning is gone.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- fix_warning_unsused_argument_pie
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 11067 Build 20540: Default Diff Build & Tests Build 20539: Build without Wallet Build 20538: Build with clang-10 Build 20537: arc lint + arc unit