Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267580 - media-libs/mesa installs broken .la files
Summary: media-libs/mesa installs broken .la files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 267584
  Show dependency tree
 
Reported: 2009-04-26 18:13 UTC by Andrei Slavoiu
Modified: 2009-07-22 08:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Remove -L/usr/lib from libGL.a (libGL.la.patch,479 bytes, patch)
2009-04-26 18:20 UTC, Andrei Slavoiu
Details | Diff
Remove -L/usr/lib from libGLU.a and add -lstdc++ (libGLU.la.patch,499 bytes, patch)
2009-04-26 18:21 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.