]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/PROOF-INF.CDB/SETUP.C
ATO-37 - STEER/CDB/AliOCDBtoolkit.cxx - Use consistently SetSpecificStorage
[u/mrichter/AliRoot.git] / STEER / PROOF-INF.CDB / SETUP.C
index e05583648962605d81aa65e2391d643774a02d61..d334ca9f6442cdd8dea490ba848443cbaac3e910 100644 (file)
@@ -10,6 +10,8 @@ void SETUP()
    gSystem->Load("libSTEERBase");
 
    // Load the CDB library
+   TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
+   gSystem->SetDynamicPath(dypath);
    gSystem->Load("libCDB");
 
    // Set the include paths
@@ -17,4 +19,8 @@ void SETUP()
 
    // Set our location, so that other packages can find us
    gSystem->Setenv("CDB_INCLUDE", "CDB/CDB");
+
+   // Set our lib coordinates, so that other packages can link to us
+   TString lib = TString::Format("-L%s -lCDB", gSystem->WorkingDirectory());
+   gSystem->Setenv("CDB_LIBS", lib.Data());
 }