mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
dcb5d1d91849bf3e22639b38657bdae6e50767d1
Currently, only the -static extldflags may be set in the golang-package infra. However, in some cases, it might be necessary to pass other flags, either because they are needed on a specific architecture, or a specific C library; packages may also have a need to pass arbitrary linker flags when they use CGO linking. For example, on AArch64, go forcibly uses ld.gold, but it is not available in all toolchains, and ld.bfd works nowadays (following patch); another case is musl, where PIE is not supported with go. Introduce FOO_EXTLDFLAGS, which we use to set those flags, and that packages can set to pass such flags. Migrate the current setting of -static to use that new variable. Signed-off-by: Yann E. MORIN <yann.morin@orange.com> Tested-by: Nathaniel Roach <nroach44@nroach44.id.au> Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de> Reviewed-by: Yann E. MORIN <yann.morin@orange.com> Reviewed-by: Christian Stewart <christian@aperture.us> Signed-off-by: Romain Naour <romain.naour@smile.fr>
…
…
…
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches
Description
Languages
Makefile
62.5%
Python
19%
C
8.5%
Shell
6.1%
PHP
1.4%
Other
2.1%