-
-
Notifications
You must be signed in to change notification settings - Fork 427
nut-scanner: additional multiarch libraries search path #317
Copy link
Copy link
Closed
Labels
CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes)cross-buildsnut-scannerrefactor/fightwarnPR or issue proposal to improve code maintainability without functional changes, or to fix warningsPR or issue proposal to improve code maintainability without functional changes, or to fix warnings
Milestone
Metadata
Metadata
Assignees
Labels
CIEntries related to continuous integration infrastructure (here CI = tools + scripts + recipes)Entries related to continuous integration infrastructure (here CI = tools + scripts + recipes)cross-buildsnut-scannerrefactor/fightwarnPR or issue proposal to improve code maintainability without functional changes, or to fix warningsPR or issue proposal to improve code maintainability without functional changes, or to fix warnings
Standard libraries search paths, as currently done for nut-scanner to load libraries using lt_dlopen (search_paths[] + get_libname()) does not address multiarch environment, where one can cross-compile for other architecture.
Hence, some libraries may not be found automatically, with the default configure options, and without specifying using --libdir.
A workaround, at least for GCC enabled platform, would be to add a MULTIARCH_LIBDIR, mapped in configure checks to 'gcc -print-multiarch'
For example, on Debian Jessie and Ubuntu Xenial, this returns 'x86_64-linux-gnu' and the multiarch libdir is '/usr/lib/x86_64-linux-gnu'