[Mesa-dev] Lets talk about autotools
Kenneth Graunke
kenneth at whitecape.org
Tue Sep 18 08:40:48 UTC 2018
On Monday, September 17, 2018 3:24:56 PM PDT Dylan Baker wrote:
> Quoting Marek Olšák (2018-09-17 15:14:11)
> > How do I build 32-bit Mesa with meson?
> >
> > Thanks,
> > Marek
> >
>
> Some people get away with just adding CFLAGs=-m32, but using a cross file and
> doing a cross build is a better way, and is basically required if you want llvm.
> Here's mine: https://gitlab.freedesktop.org/snippets/504
>
> Dylan
I've attached mine, I then do:
meson --cross-file=/home/kwg/.local/meson-32-cross --buildtype=release --prefix=/home/kwg/Projects/mesa/build/32/install -Ddri-drivers=i965 -Dvulkan-drivers=intel -Dgallium-drivers= -Db_ndebug=true -Dglvnd=true build/32
Other than the addition of --cross-file, it's just like any other build.
-------------- next part --------------
[binaries]
c = '/usr/bin/gcc'
cpp = '/usr/bin/g++'
ar = '/usr/bin/ar'
strip = '/usr/bin/strip'
pkgconfig = '/usr/bin/pkg-config'
[properties]
c_args = ['-m32']
c_link_args = ['-m32']
cpp_args = ['-m32']
cpp_link_args = ['-m32']
[host_machine]
system = 'linux'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
# vim: ft=dosini
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180918/b76ad6cb/attachment.sig>
More information about the mesa-dev
mailing list