On Mon, Feb 1, 2010 at 10:35 AM, tom fogal <tfo...@alumni.unh.edu> wrote:
> Mike Stroyan <m...@lunarg.com> writes:
>>   The changes to load EGL drivers by pattern matching had the side
>> effect of not looking in the directories specified by LD_LIBRARY_PATH
>> or -rpath or ldconfig .
>
> This is silly.  If you give dlopen a library name:
>
>  dlopen("libWhatever.so", flags);
>
> then *it* will automatically search LD_LIBRARY_PATH.  By giving an
> absolute path, one circumvents this behavior.

Tom,

  The reason this code is not just using dlopen with a library name is that the
_eglPreloadDisplayDrivers function is attempting to find all driver libraries
that match a pattern such as "egl_x11_*.so".  Any one of those libraries might
be the best one to use.  It loads them all and uses a "Probe" function
in each driver to look for the best match for the hardware.
dlopen itself cannot find libraries that match a pattern.

-- 

 Mike Stroyan - Software Architect
 LunarG, Inc.  - The Graphics Experts
 Cell:  (970) 219-7905
 Email: m...@lunarg.com
 Website: http://www.lunarg.com

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to