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
- Lint
Lint Not Applicable - Unit
Tests Not Applicable