Problem 1110

Summary: LD_LIBRARY_PATH not set correctly by env.(c)sh with G4LIB_BUILD_STATIC
Product: Geant4 Reporter: Ben Morgan <Ben.Morgan>
Component: configAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED FIXED    
Severity: normal    
Priority: P3    
Version: 9.3   
Hardware: All   
OS: All   

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.