[Mesa-dev] [Bug 50754] Building 32 bit mesa on 64 bit OS fails since change for automake

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 18 15:03:34 PDT 2012


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

--- Comment #12 from Alexandre Demers <alexandre.f.demers at gmail.com> 2012-08-18 22:03:34 UTC ---
(In reply to comment #11)
> (In reply to comment #8)
> > Created attachment 65690 [details] [review] [review]
> > hopeful fix
> > 
> > attached patch fixes the issue for me
> 
> Can you explain why this works?

According to
http://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html, LT_INIT
will test some environment variables, CFLAGS being one of them. By moving the
LT_INIT macro from line 27 below line 274, CFLAGS is now defined according to
32 or 64 bit build (done between lines 240 and 270). That is, by setting
"--enable-32-bit" when building mesa (line 248), CFLAGS="$CFLAGS -m32" (line
250), thus LT_INIT will consider using 32 bit mode when initialized.

-- 
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