Go to file
Yann E. MORIN ad12524803 package/libglib2: fix build on ARM in Thumb mode
Commit 4102db0f7 (package/libglib2: bump to version 2.60.3) did convert
libglib2 over to meson. In doing so, it left a very corner-case along.

When the target is an ARM CPU and the build is in thumb mode, then we
want to ensure that libglib2 is still built in arm mode (because of
inline asm).

But with meson, CFLAGS from the environment are passed to the host
compiler, so the build breaks, and the meson log contains:

    Appending CFLAGS from environment: '-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -marm'
    No LDFLAGS in the environment, not changing global flags.
    No CPPFLAGS in the environment, not changing global flags.
    Sanity testing C compiler: cc
    Is cross compiler: False.
    Sanity check compiler command line: cc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -marm [...]/build/libglib2-2.60.4/build/meson-private/sanitycheckc.c -o [...]/build/libglib2-2.60.4/build/meson-private/sanitycheckc.exe
    Sanity check compile stdout:
    -----
    Sanity check compile stderr:
    cc: error: unrecognized command line option ‘-marm’; did you mean ‘-mabm’?
    -----
    meson.build:1:0: ERROR: Compiler cc can not compile programs.

Fix that by using the new per-package CFLAGS feature of the meson infra.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Cc: Adam Duskett <aduskett@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019-07-01 10:02:15 +02:00
arch arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_9 2019-06-22 21:38:23 +02:00
board board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
boot boot/mv-ddr-marvell: fix build with GCC 8 2019-06-23 12:42:25 +02:00
configs configs/arcturus_ucp1020: bump Linux and U-Boot 2019-06-23 17:26:55 +02:00
docs infra/pkg-meson: allow packages to pass custom compiler/linker flags 2019-07-01 09:51:16 +02:00
fs core: remove show-dependency-tree 2019-05-07 23:06:05 +02:00
linux {linux, linux-headers}: bump 4.{4, 9, 14, 19}.x / 5.1.x series 2019-06-27 17:55:25 +02:00
package package/libglib2: fix build on ARM in Thumb mode 2019-07-01 10:02:15 +02:00
support support/testing: openjdk JNI test cases 2019-06-30 17:32:34 +02:00
system system/Config.in: add new init - openrc 2019-05-18 23:16:04 +02:00
toolchain toolchain-external: add gcc 9 entry 2019-06-22 21:42:03 +02:00
utils utils/test-pkg: clean output dir for successful builds 2019-06-23 21:39:08 +02:00
.defconfig
.flake8 .flake8: fix check for 80/132 columns 2019-04-10 12:31:33 +02:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
.gitlab-ci.yml package/luasyslog: new package 2019-06-20 18:25:15 +02:00
.gitlab-ci.yml.in .gitlab-ci.yml: add trigger per job 2019-05-01 15:42:45 +02:00
CHANGES Update for 2019.02.3 2019-06-07 10:36:23 +02:00
Config.in toolchain: set the ssp gcc option in kconfig 2019-03-13 00:01:55 +01:00
Config.in.legacy package/x11r7/xapp_mkfontdir: remove package 2019-06-20 21:39:03 +02:00
COPYING
DEVELOPERS python-inflection: new package 2019-06-30 15:30:52 +02:00
Makefile Kickoff 2019.08 cycle 2019-06-02 10:17:27 +02:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README

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 Freenode IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches