Skip to content

Commit

Permalink
Also get the "-lpython" option from the command line if needed. Befor…
Browse files Browse the repository at this point in the history
…e Fedora 33, always

came with python-config --libs, but no more.
  • Loading branch information
markito3 committed Nov 2, 2020
1 parent 695e07f commit b976cec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b976cec

Please sign in to comment.