Page MenuHomePhabricator

[CMAKE] Add PIC/PIE flags on non Windows platforms
ClosedPublic

Authored by Fabien on Mar 4 2019, 16:15.

Details

Summary

This diffs adds the -fPIC and -fPIE compiler flags, as well as the
-pie compiler flag.

Test Plan
mkdir buildcmake && cd buildcmake
cmake -GNinja ..
ninja
../contrib/devtools/security-check.py src/bitcoind

Before the patch, the output would contain PIE, no longer after the
patch.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_pic_pie
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5125
Build 8313: Bitcoin ABC Buildbot (legacy)
Build 8312: arc lint + arc unit