Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 267580

Summary: media-libs/mesa installs broken .la files
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 267584    
Attachments: Remove -L/usr/lib from libGL.a
Remove -L/usr/lib from libGLU.a and add -lstdc++

Description Andrei Slavoiu 2009-04-26 18:13:39 UTC
The libGL.la and libGLU.la files installed by mesa explicitly add -L/usr/lib to the LDFLAGS of any package using them, thus forcing them to use the native libraries when crosscompiling.
Another problem is that libGLU is written in C++ but used by many C only programs. It's best to add -lstdc++ to the dependencies list of libGLU.

Reproducible: Always

Steps to Reproduce:
Comment 1 Andrei Slavoiu 2009-04-26 18:20:31 UTC
Created attachment 189532 [details, diff]
Remove -L/usr/lib from libGL.a
Comment 2 Andrei Slavoiu 2009-04-26 18:21:07 UTC
Created attachment 189534 [details, diff]
Remove -L/usr/lib from libGLU.a and add -lstdc++
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-07-22 08:31:22 UTC
Okey applied for now, thanks for patches.
Hopefully we will get rid of these two files soon.