diff --git a/GNUmakefile b/GNUmakefile index d0f1ba5..caa3f42 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -84,12 +84,13 @@ endif G4shared_libs := $(wildcard $(G4ROOT)/lib64/*.so) BOOST_PYTHON_LIB = boost_python +PYTHON_LIB_OPTION = "" INTYLIBS += -Wl,--whole-archive $(DANALIBS) -Wl,--no-whole-archive INTYLIBS += -fPIC -I$(HDDS_HOME) -I$(XERCESCROOT)/include INTYLIBS += -L${XERCESCROOT}/lib -lxerces-c INTYLIBS += -L$(G4TMPDIR) -lhdds -INTYLIBS += -l$(BOOST_PYTHON_LIB) -L$(shell $(PYTHON_CONFIG) --prefix)/lib $(shell $(PYTHON_CONFIG) --ldflags) +INTYLIBS += -l$(BOOST_PYTHON_LIB) -L$(shell $(PYTHON_CONFIG) --prefix)/lib $(shell $(PYTHON_CONFIG) --ldflags) $(PYTHON_LIB_OPTION) INTYLIBS += -L$(G4ROOT)/lib64 $(patsubst $(G4ROOT)/lib64/lib%.so, -l%, $(G4shared_libs)) INTYLIBS += -lgfortran INTYLIBS += -L/usr/lib64