[cmake-developers] [CMake 0012534]: Accumulate library paths from ld.so.conf
Mantis Bug Tracker
mantis at public.kitware.com
Sat Oct 22 02:26:05 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12534
======================================================================
Reported By: Lars Viklund
Assigned To:
======================================================================
Project: CMake
Issue ID: 12534
Category: CMake
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-10-22 02:26 EDT
Last Modified: 2011-10-22 02:26 EDT
======================================================================
Summary: Accumulate library paths from ld.so.conf
Description:
It was discussed on the list in January 2011 whether to add paths from
/etc/ld.so.conf to the library search path, but no conclusion was made.
As Ubuntu 11.10 uses this functionality for rather common libraries (libGL.so),
I've hacked up some rudimentary functionality for Platform/UnixPaths.cmake to
traverse the includes in ld.so.conf and accumulate the paths there into
CMAKE_SYSTEM_LIBRARY_PATH.
It's works-for-me grade code that probably needs better handling of comments,
whitespace and missing entries.
This is needed eventually as ld.so.conf will not go away, and as you cannot
enumerate all the locations all distros will put libraries in.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-10-22 02:26 Lars Viklund New Issue
2011-10-22 02:26 Lars Viklund File Added: ld.so.txt
======================================================================
More information about the cmake-developers
mailing list