science/dftbplus: Unbreak build with GCC 9

/usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.0':
coulomb.f90:(.text+0x42): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
/usr/local/bin/ld: coulomb.f90:(.text+0x176): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
/usr/local/bin/ld: coulomb.o: in function `__coulomb_MOD_invrstress._omp_fn.1':
coulomb.f90:(.text+0xfbc): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_start'
/usr/local/bin/ld: coulomb.f90:(.text+0x1172): undefined reference to `GOMP_loop_maybe_nonmonotonic_runtime_next'
[...]

PR:		238666
Submitted by:	jbeich
Reported by:	antoine (via exp-run in PR 238330)
Approved by:	yuri (maintainer timeout, 2 weeks)
This commit is contained in:
Tobias Kortkamp 2019-07-03 10:05:47 +00:00
parent 58f932db78
commit f8bce16669
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505742

View file

@ -2,7 +2,7 @@
PORTNAME= dftbplus
DISTVERSION= 18.2
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= science
MAINTAINER= yuri@FreeBSD.org
@ -11,11 +11,10 @@ COMMENT= DFTB+: Package for performing fast atomistic simulations
LICENSE= GPLv3 # main code is under LGPL3+, the bundled dftd3-lib is under GPLv1+, this makes the result GPLv3 (based on https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility)
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
libomp.so:devel/openmp
liblapack.so:math/lapack
RUN_DEPENDS= ${PYNUMPY}
USES= fortran gmake python:2.7 shebangfix
USES= compiler:gcc-c++11-lib fortran gmake python:2.7 shebangfix
SHEBANG_FILES= tools/dptools/bin/* tools/misc/* utils/srcmanip/* utils/build/* external/fypp/bin/* utils/get_opt_externals \
external/fypp/bin/fypp utils/test/testlist_to_fypp test/prog/dftb+/bin/tagdiff
SHEBANG_GLOB= *.py
@ -28,7 +27,7 @@ MAKEFILE= makefile
TEST_TARGET= test
FFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -llapack -lblas ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgcc_s.so ${LOCALBASE}/lib/gcc${GCC_DEFAULT}/libgfortran.so -lm -lomp
LDFLAGS+= -llapack -lblas -lgfortran -lm
MAKE_ARGS= PYTHON=${PYTHON_CMD} FC=${FC} FXX=${FC} LN=${CC} \
INSTALLDIR=${STAGEDIR}${PREFIX} FREEBSD_PYDISTUTILS_INSTALLARGS="${PYDISTUTILS_INSTALLARGS} --root=${STAGEDIR}"