From 91229ab0b6a696a234ce20071a6f64aa12b35dba Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 28 Oct 2019 19:33:19 +0100
Subject: [PATCH] InitAClick: remove explicit loading of DD4hepPluginManager as
 this is done implicitely later on and causes a crash on some systems
 otherwise

---
 DDG4/examples/initAClick.C         | 1 -
 examples/LHeD/scripts/initAClick.C | 1 -
 2 files changed, 2 deletions(-)

diff --git a/DDG4/examples/initAClick.C b/DDG4/examples/initAClick.C
index a52b6d816..08f6c397b 100644
--- a/DDG4/examples/initAClick.C
+++ b/DDG4/examples/initAClick.C
@@ -87,7 +87,6 @@ int initAClick(const char* command=0)  {
   libs += " " +dd4hep+"/lib/libDD4hepGaudiPluginMgr." + ext;
   libs += " " +dd4hep+"/lib/libDDCore."+ ext;
   libs += " " +dd4hep+"/lib/libDDG4."+ ext;
-  gSystem->Load(std::string("libDD4hepGaudiPluginMgr." + ext).c_str());
   gSystem->AddIncludePath(inc.c_str());
   gSystem->AddLinkedLibs(libs.c_str());
   std::cout << "+++ Includes:   " << gSystem->GetIncludePath() << std::endl;
diff --git a/examples/LHeD/scripts/initAClick.C b/examples/LHeD/scripts/initAClick.C
index a441f5cb0..0dd20c8df 100644
--- a/examples/LHeD/scripts/initAClick.C
+++ b/examples/LHeD/scripts/initAClick.C
@@ -93,7 +93,6 @@ int initAClick(const char* command=0)  {
   libs += " " +dd4hep+"/lib/libDD4hepGaudiPluginMgr." + ext;
   libs += " " +dd4hep+"/lib/libDDCore." + ext;
   libs += " " +dd4hep+"/lib/libDDG4." + ext;
-  gSystem->Load(std::string("libDD4hepGaudiPluginMgr." + ext).c_str());
   gSystem->AddIncludePath(inc.c_str());
   gSystem->AddLinkedLibs(libs.c_str());
   std::cout << "+++ Includes:   " << gSystem->GetIncludePath() << std::endl;
-- 
GitLab