Summary: | Meson: crosscompiling with a crossfile fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | Alexandre Demers <alexandre.f.demers> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED INVALID | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | crossfile |
Description
Alexandre Demers
2018-12-03 08:04:33 UTC
Created attachment 142695 [details]
crossfile
crossfile used to crosscompile mesa from a x86_64 build to a x86 host.
You tried adding the compiler `-m32` flag (through CFLAGS), but you were still missing the linker `-m32` flag (LDFLAGS). Try using the cross file I sent on the mailing list last week: https://lists.freedesktop.org/archives/mesa-dev/2018-November/210647.html (we need to discuss something, but then I'll push it and it will be available on https://mesa3d.org/meson.html) BTW, with meson it is not recommended to use env vars, but to use meson flags and settings, as it handles those better. It seems I missed last week's memo about the cross file. ;) I'll try it and I'll update this bug accordingly in the next few days. Thank you about the cue on env var VS meson's flags, I'm new to meson and your comment will be helpful. Adding meson's flags instead of setting the environment variables did the trick. I'm closing this bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.