Support alternate file path lists for loading libs
authorJames Jones <jajones@nvidia.com>
Tue, 12 Jan 2021 23:59:42 +0000 (15:59 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 14 Apr 2021 09:12:25 +0000 (09:12 +0000)
commitd52964b6fc304af55e733ff5ea8c2cb65b2959e4
tree85f6de8ec0ad2e5f4c3b71b37834f44054ff667d
parentededa67cb12aec0c5e92e3eba40d3f3c7b4d697f
Support alternate file path lists for loading libs

Add a new constructor to the dynamic library
loader helper class that allows callers to specify
more than one path for the desired library. The
ordered, NULL-terminated array of paths is walked
until loading one succeeds. The intention here is
to support both versioned and unversioned file
names for portability across operating systems
with different library naming conventions, e.g:

  { libfoo.so.3, libfoo.so, DE_NULL }

Should load "libfoo" on both Linux and BSD OSs.

Components: Framework

Change-Id: I1a0e1c055dd6eeee8e091be5148b99f1f63d86f6
framework/delibs/decpp/deDynamicLibrary.cpp
framework/delibs/decpp/deDynamicLibrary.hpp