Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34889 - patch for QT to make libGL dlopen'ed
Summary: patch for QT to make libGL dlopen'ed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All All
: High enhancement
Assignee: Gentoo KDE team
URL: http://lists.kde.org/?l=kde-optimize&...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 07:34 UTC by Spider (RETIRED)
Modified: 2004-02-20 08:15 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2003-12-02 07:34:25 UTC
this is a patch against qt-3.1.2 that makes qt + kde prelinkable (Weeee )


instructions, as snipped :

It is often quite difficult to use prelink with KDE because QT depends on libGL.so and libGL.so is often compiled as a non-PIC library for performance reasons.

The NVidia libraries are compiled this way, and I cannot recompile them in PIC mode for lack of source. Sigh.

This is frustrating because 95% of the KDE executables do not need libGL. Why not make QT load libGL when it needs it only?

The attached patch does this. It creates little stubs for all the openGL functions needed by QT. libGL.so is loaded with dlopen the first time one of these stubs is called. Otherwise the stub simply calls the required function.

Rough recipe:

    * Get the qt-3.1.2 package for your distribution.
    * Apply the distribution specific patches (e.g. redhat9 has a lot of them...)
    * Apply the attached patch.
    * Run the script 'configure' that comes with Qt with the appropriate options.
    * Edit the file src/Makefile to remove -lGL from the command for linking qt.so.
    * Make.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-12-05 09:30:20 UTC
I just received word that Qt 3.3.0 will allow you to compile Qt with an option to make libGL dlopenable.  I am currently testing this feature right now on the commercial version.
Comment 2 Spider (RETIRED) gentoo-dev 2003-12-06 11:00:33 UTC
ohh, neat. Hope that will get in nicely, it'd sure give a speedboost here
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-12-23 07:09:32 UTC
Now supported in latest qt 3.3 and qt-copy cvs ebuilds.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2004-02-20 08:15:25 UTC
so it's fixed with qt 3.3