HomePhabricator

[CMAKE] Add cross build toolchain files for PC Linux platform

Description

[CMAKE] Add cross build toolchain files for PC Linux platform

Summary:
This allows to use the depends system for building a deterministic linux
binary.

Depends on D3017

Test Plan:
Note: see dependencies in contrib/gitian-descriptors/gitian-linus.yml

mkdir buildcmake && cd buildcmake
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux64.cmake \
-GNinja ..
ninja

Run src/bitcoind and src/qt/bitcoin-qt on a 64 bits Linux

rm -rf *
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/Linux32.cmake \
-GNinja ..
ninja

Run src/bitcoind and src/qt/bitcoin-qt on a 32 bits Linux

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3019

Details

Provenance
FabienAuthored on Apr 30 2019, 09:44
deadalnixPushed on May 25 2019, 15:00
Reviewer
Restricted Project
Differential Revision
D3019: [CMAKE] Add cross build toolchain files for PC Linux platform
Parents
rSTAGING3c8b87cf3dda: [CMAKE] Disable OpenGL in Qt static build for OSX
Branches
Unknown
Tags
Unknown