Page MenuHomePhabricator

[CMAKE] Add an option to statically link libstdc++
ClosedPublic

Authored by Fabien on May 7 2019, 12:19.

Details

Summary

The -static-libstdc++ linker flag is passed manually through the
environment variable LDFLAGS when running configure configure for
the Linux gitian build.

Test Plan
cmake -DENABLE_STATIC_LIBSTDCXX=ON -GNinja ..
ninja
readelf -d src/bitcoind | grep libstdc++

Grep should return nothing.

cmake -DENABLE_STATIC_LIBSTDCXX=OFF -GNinja ..
ninja
readelf -d src/bitcoind | grep libstdc++

Grep should return a line containing:

Shared library: [libstdc++.so.x]

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable