[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 11 23:35:47 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=44618

--- Comment #2 from Thierry Reding <thierry.reding at avionic-design.de> 2012-01-11 23:35:47 PST ---
(In reply to comment #1)
> Scons supports cross-compilation using approach 1). It builds the
> builtin_compiler and its dependencies twice. This works because each
> platform/machine gets built in a separate build sub directory (e.g.,
> build/linux-x86-debug, build/).

Are you saying that using SCons, Mesa already cross-builds properly?

> Getting this to work with the Mesa make file subsystem is probably quite a lot
> of work.

You're probably right. But I believe it is the technically correct approach.

> 2) seems an easier approach. But still tricky given that Mesa doesn't allow out
> of source build.

Out of tree builds would also be nice to have. Has anyone ever done some work
on
that? The problem with this option is that it requires special instructions to
make cross-compilation work (compile for build system, then compile for host
system with special flags). Cross-compilation really should work
out-of-the-box.

> Another option would be simply to eliminate builtin_compiler, and do whatever
> it does at runtime, when the drivers are loaded.

I think that was one of the reasons why builtin_compiler was introduced in the
first place, to avoid having to do this at runtime. I think the benefits 
outweigh the trickiness required at build time.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list