diff --git a/Makefile b/Makefile index 0c2fd44..761018f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ endif CXXFLAGS=$(shell geant4-config --cflags) LDLIBS=$(shell geant4-config --libs) # fix cxxflags for Geant4.10.7.0 -CXXFLAGS+=$(shell geant4-config --cflags |awk '{print $$NF}'|sed 's|Geant4||') +CXXFLAGS+=$(shell geant4-config --cflags |awk '{print $$NF}'|sed 's|de/Geant4|de|') CXXFLAGS+=-Wno-shadow # In case that GDML and HDF5 libs are in user specified folders,