On Friday 25 January 2008 5:17:28 am Antti Harri wrote:
> On Fri, 25 Jan 2008, Peter Strömberg wrote:
> > Eh, why not just use libGL.so so it will find any available version?
>
> I thought about this too. But what version will it use
> when there are multiple version installed? For example libGL.so.5.1 and
> libGL.so.6.0.

If you don't specify a major.minor in the name passed dlopen() it will select 
the one with the highest major then highest minor after that.

> > Like we do in firefox:
> > patch-gfx_src_psshared_nsCUPSShim_cpp:-    mCupsLib =
> > PR_LoadLibrary("libcups.so.2"); patch-gfx_src_psshared_nsCUPSShim_cpp:+  
> >  mCupsLib = PR_LoadLibrary("libcups.so");
> > patch-modules_libpref_src_init_all_js:-pref("font.freetype2.shared-librar
> >y", "libfreetype.so.6");
> > patch-modules_libpref_src_init_all_js:+pref("font.freetype2.shared-librar
> >y", "libfreetype.so"); patch-widget_src_gtk2_nsSound_cpp:-    elib =
> > PR_LoadLibrary("libesd.so.0"); patch-widget_src_gtk2_nsSound_cpp:+   
> > elib = PR_LoadLibrary("libesd.so");
>
> With sdl it is loaded on runtime, it can also be overridden
> using and environment variable. Does that matter?

Less knobs == better.

Reply via email to