[Mesa-dev] [PATCH] configure: use $target_cpu, not $host_cpu when setting asm_arch

Brian Paul brianp at vmware.com
Thu Jun 25 06:39:11 PDT 2015


I've got 32-bit libs building on 64-bit Ubuntu and Fedora.  But I've 
found a weird problem.

On Fedora 22, for example, Mesa's make install creates a 
/usr/lib/libGL.la file which contains the line:

dependency_libs=' -L/usr/lib -lexpat -L/usr/lib64 /usr/lib64/libglapi.la 
-lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb-dri2 -lxcb 
-lXxf86vm /usr/lib/libdrm.la -ludev -lm -lpthread -ldl'

Note the -L/usr/lib/64 and /usr/lib64/libglapi.la parts.

When I try to build 32-bit Mesa demos, libtools finds this libGL.la file 
and tries to link the 32-bit glxgears.o (for example) with 
/usr/lib64/libglapi.so.  That fails, of course.

Removing the /usr/lib/libGL.la file is a work-around but I'm interested 
in finding a better solution.

-Brian


More information about the mesa-dev mailing list