Skip to content

Commit

Permalink
science/libxc: Add NATIVE option
Browse files Browse the repository at this point in the history
... to have no native optimizations by default.
Otherwise libxc caused illegal instruction errors in science/sirius.
  • Loading branch information
yurivict committed Jul 14, 2023
1 parent 038e81a commit 0efd6e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion science/libxc/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libxc
DISTVERSION= 6.0.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= science
MASTER_SITES= https://www.tddft.org/programs/${PORTNAME}/down/${DISTVERSION}/

Expand All @@ -18,6 +18,10 @@ TEST_DEPENDS= bash:shells/bash
CMAKE_ON= BUILD_SHARED_LIBS ENABLE_FORTRAN ENABLE_PYTHON
CMAKE_OFF= BUILD_TESTING

OPTIONS_DEFINE= NATIVE

NATIVE_CMAKE_BOOL= ENABLE_XHOST

pre-configure:
${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pylibxc$$|${PYTHONPREFIX_SITELIBDIR}/pylibxc|' \
-e 's|$${CMAKE_INSTALL_PREFIX}/$${CMAKE_INSTALL_LIBDIR}/pylibxc/|${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pylibxc/|'\
Expand Down

0 comments on commit 0efd6e6

Please sign in to comment.