https://github.com/root-project/root
Revision b2163a63d4fb9baa1ebb54619be1a5d36087e013 authored by Rene Brun on 31 March 2005, 20:13:52 UTC, committed by Rene Brun on 31 March 2005, 20:13:52 UTC
This patch works around yet another library loading issue on MacOS.
When using PyROOT, the root libraries are linked in as part of
libPyROOT.  When executing gSystem->GetLinkedLibraries(), it
executes otool on the current executable.  When using python,
this means it finds only the library from the python executable
itself.  Since it finds some libraries, this indicates to
GetLibraries that it should __not__ used the default link line.
On MacOS, since there is one library (libSystem.B) linked in
python, this means that the system does not know that it has
already loaded the core libraries (and hence the autoloader
reload them and since MacOS effectively will load the same
library multiple time, this can cause problem).

On linux, it happens to work because GetLinkedLibs only
keeps the library ending in .so, hence filtering the libraries
ending in .so.2 (or any variation).  The result is that it looks
like python has no linked libraries and the default list is used
and everything works fine.


git-svn-id: http://root.cern.ch/svn/root/trunk@11466 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 742867f
History
Tip revision: b2163a63d4fb9baa1ebb54619be1a5d36087e013 authored by Rene Brun on 31 March 2005, 20:13:52 UTC
From Philippe:
Tip revision: b2163a6

back to top