Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
BUILD.gn | D | 03-May-2024 | 940 | 42 | 34 | |
README.md | D | 03-May-2024 | 1.3 KiB | 42 | 29 |
README.md
1# Overview 2 3This directory contains files that make it possible for Linux 4distributions to build Chromium using system toolchain. 5 6For more info on established way such builds are configured, 7please read the following: 8 9 - https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html 10 11Why do distros want CFLAGS, LDFLAGS, etc? Please read the following 12for some examples. This is not an exhaustive list. 13 14 - https://wiki.debian.org/Hardening 15 - https://wiki.ubuntu.com/DistCompilerFlags 16 - https://fedoraproject.org/wiki/Changes/Harden_All_Packages 17 - https://fedoraproject.org/wiki/Changes/Modernise_GCC_Flags 18 - https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags 19 - https://blog.flameeyes.eu/2010/09/are-we-done-with-ldflags/ 20 - https://blog.flameeyes.eu/2008/08/flags-and-flags/ 21 22# Usage 23 24Add the following to GN args: 25 26``` 27custom_toolchain="//build/toolchain/linux/unbundle:default" 28host_toolchain="//build/toolchain/linux/unbundle:default" 29``` 30 31See [more docs on GN](https://gn.googlesource.com/gn/+/main/docs/quick_start.md). 32 33To cross-compile (not fully tested), add the following: 34 35``` 36host_toolchain="//build/toolchain/linux/unbundle:host" 37v8_snapshot_toolchain="//build/toolchain/linux/unbundle:host" 38``` 39 40Note: when cross-compiling for a 32-bit target, a matching 32-bit toolchain 41may be needed. 42