| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Require newer meson in order to avoid build failures triggered
new meson is not installed soon enough. For example, I experienced
bug 649264 because I upgraded xorg-proto and libxshmfence packages
before meson.
Although meson-0.44.1 is enough to solve bug 649264, Mike Gilbert
suggests to require at least meson-0.45.1, since this version is
the latest stable on all archs.
Closes: https://bugs.gentoo.org/649264
Reviewed-by: Mart Raudsepp <leio@gentoo.org>
Reviewed-by: Mike Gilbert <floppym@gentoo.org>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 0fe549260636840b96dfd3b9f55b5bbf7ea1d6a3.
This function is unnecessary; we can use lists for the relevant
toolchain binaries instead.
|
|
|
|
|
| |
This is used to move flags from CC to CFLAGS, typically during a
multilib build.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
meson gets the build flags from the environment. When cross compiling it
will get the host flags from the cross file. The ebuild was not passing
the correct build flags when cross compiling.
By using tc-env_build the build environment flags are set when calling
meson. This results in not mixing host and build flags:
Example output:
Native C compiler: x86_64-pc-linux-gnu-clang (clang 7.0)
Appending CFLAGS from environment: '-O1 -pipe'
Appending LDFLAGS from environment: ' '
Appending CPPFLAGS from environment: ' '
Cross C compiler: armv7a-cros-linux-gnueabi-clang (clang 7.0)
Host machine cpu family: arm
Host machine cpu: armv7a
Target machine cpu family: arm
Target machine cpu: armv7a
Build machine cpu family: x86_64
Build machine cpu: x86_64
tc-env_build does not seem to load the actual build flags, but it's
better than using host flags as build flags.
See https://bugs.gentoo.org/653902 for upstream patch
BUG=b:78351764
BRANCH=none
TEST=emerge-grunt and verified mosys runs
Change-Id: I802b58cb089b27b9253a034ac00dd183e0f1955a
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Closes: https://bugs.gentoo.org/653902
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use python's shlex to parse the flags and generate an array that is
usable by meson. This will pass the flags correctly when doing a cross
build.
Example cross file output:
[properties]
c_args = ['-O2', '-pipe', '-march=armv8-a+crc', '-mtune=cortex-a57.cortex-a53', '-mfpu=crypto-neon-fp-armv8', '-mfloat-abi=hard', '-g', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-clang-syntax']
c_link_args = ['-Wl,-O1', '-Wl,-O2', '-Wl,--as-needed']
cpp_args = ['-O2', '-O2', '-pipe', '-march=armv8-a+crc', '-mtune=cortex-a57.cortex-a53', '-mfpu=crypto-neon-fp-armv8', '-mfloat-abi=hard', '-g', '-fno-exceptions', '-fno-unwind-tables', '-fno-asynchronous-unwind-tables', '-clang-syntax']
cpp_link_args = ['-Wl,-O1', '-Wl,-O2', '-Wl,--as-needed']
fortran_args = ['-O2']
objc_args = []
objcpp_args = []
See https://bugs.gentoo.org/653900 for upstream patch.
BUG=b:78351764
TEST=emerge-grunt and emerge-bob and verified the flags are passed to
mosys
BRANCH=none
Change-Id: Ic3d852232ec718141b87bc0729318699f0fad4f8
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Closes: https://bugs.gentoo.org/653900
|
| |
|
|
|
|
| |
Closes: https://bugs.gentoo.org/636654
|
|
|
|
|
|
|
|
| |
This fixes cross-compiling current systemd.
Signed-off-by: David Michael <david.michael@coreos.com>
Closes: https://bugs.gentoo.org/635354
Closes: https://github.com/gentoo/gentoo/pull/5940
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make it possible to use the meson eclass without it automatically adding
meson to DEPEND. Intended for cases where meson usage is conditional
(e.g. hidden behind a USE flag).
This is a direct copy of the AUTOTOOLS_AUTO_DEPEND functionality &
implementation from autotools.eclass, including the guard for multiple
inheritance.
Closes: https://bugs.gentoo.org/626054
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
|
|
|
| |
Bug: https://bugs.gentoo.org/625396
|
| |
|
|
|
|
|
|
| |
Downloading sources in src_configure is a bad idea.
Ref: http://mesonbuild.com/FAQ.html#does-wrap-download-sources-behind-my-back
|
| |
|
| |
|
|
|