Date: Mon, 1 Jul 2019 19:47:39 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505632 - head/science/PETSc Message-ID: <201907011947.x61JldPo063564@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Jul 1 19:47:39 2019 New Revision: 505632 URL: https://svnweb.freebsd.org/changeset/ports/505632 Log: science/PETSc: fix build with non-x86 Only i386 and amd64 have SSE, don't use it on other platforms. It probably also builds on ARM platforms with this patch, but someone would have to test it. PR: 238631 Approved by: yuri (maintainer timeout), mat (mentor) Differential Revision: https://reviews.freebsd.org/D20821 Modified: head/science/PETSc/Makefile Modified: head/science/PETSc/Makefile ============================================================================== --- head/science/PETSc/Makefile Mon Jul 1 19:45:03 2019 (r505631) +++ head/science/PETSc/Makefile Mon Jul 1 19:47:39 2019 (r505632) @@ -17,7 +17,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to build: MPI compiler wrappers do not work. See http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-compilers BROKEN_armv6= fails to build: MPI compiler wrappers do not work. See http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-compilers BROKEN_armv7= fails to build: MPI compiler wrappers do not work. See http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-compilers -BROKEN_powerpc64= fails to build: MPI compiler wrappers do not work. See http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-compilers LIB_DEPENDS= libmpich.so:net/mpich @@ -25,8 +24,10 @@ USES= blaslapack fortran gmake python:2.7 shebangfix GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-shared-libraries=1 \ --with-mpi-dir=${LOCALBASE} \ - CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2" CPPFLAGS="${CPPFLAGS}" \ + ${CONFIGURE_ARG_${ARCH}} CPPFLAGS="${CPPFLAGS}" \ LDFLAGS="${LDFLAGS}" LIBS="" +CONFIGURE_ARGS_amd64= CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2" +CONFIGURE_ARGS_i386= CFLAGS="${CFLAGS} -msse2" CXXFLAGS="${CXXFLAGS} -msse2" USE_XORG= x11 MAKEFILE= makefile SHEBANG_FILES= lib/petsc/bin/*.py lib/petsc/bin/saws/SAWs.py lib/petsc/bin/saws/*.bash config/*.py
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907011947.x61JldPo063564>