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