Skip to content

Commit

Permalink
science/libint2-psi4: Add NATIVE option
Browse files Browse the repository at this point in the history
Otherwise it was built with -march=native by default which
potentially causes crashes with illegal instruction signal.
  • Loading branch information
yurivict committed Jul 14, 2023
1 parent ad12c90 commit cc59d9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions science/libint2-psi4/Makefile
@@ -1,5 +1,6 @@
PORTNAME= libint2-psi4
DISTVERSION= 0.1-${VERSION}
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://github.com/loriab/libint/releases/download/v${DISTVERSION:C/-.*//}/
DISTFILES= libint-${VERSION}-post1-5-4-3-6-5-4_mm4f12ob2_1.tgz
Expand Down Expand Up @@ -32,6 +33,10 @@ PLIST_SUB+= VER=${VERSION}

CONFLICTS= libint2

OPTIONS_DEFINE= NATIVE

NATIVE_CMAKE_BOOL= ENABLE_XHOST

post-configure: # workaround for clang hanging on unity_1935_cxx.cxx, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265809
#@cd ${BUILD_WRKSRC} && \
# ${SED} -e 's|%%BUILD_WRKSRC%%|${BUILD_WRKSRC}|g ; s|%%WRKDIR%%|${WRKDIR}|g' < ${FILESDIR}/build.patch | ${PATCH}
Expand Down

0 comments on commit cc59d9d

Please sign in to comment.