Problem 1110 - LD_LIBRARY_PATH not set correctly by env.(c)sh with G4LIB_BUILD_STATIC
Summary: LD_LIBRARY_PATH not set correctly by env.(c)sh with G4LIB_BUILD_STATIC
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: 9.3
Hardware: All All
: P3 normal
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2010-03-09 18:50 CET by Ben Morgan
Modified: 2010-03-10 16:16 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Ben Morgan 2010-03-09 18:50:25 CET
As originally reported by Andreas Schaelicke, the env.(c)sh scripts do not set (DY)LD_LIBRARY_PATH correctly for a Geant4 build with static libraries only. 

A specific example is for CLHEP. If Geant4 is build with static libraries only, then the CLHEP library directory is not added to (DY)LD_LIBRARY_PATH. If both static and shared CLHEP libraries exist, the shared version will be linked to a Geant4 application by the Makefiles, but the application will not pick up the library because (DY)LD_LIBRARY_PATH does not contain the CLHEP library directory.

This arises because the env.(c)sh are overzealous in only setting (DY)LD_LIBRARY_PATH when G4LIB_BUILD_SHARED is set - this is a fairly simple fix.

(Gabriele, please reassign this to me!)

Ben.
Comment 1 Ben Morgan 2010-03-10 16:16:44 CET
Now fixed in CVS.