Ignore:
Timestamp:
10/06/23 17:15:51 (18 months ago)
Author:
jdquinn
Message:

CHG: Support for MATLAB binaries on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/petsc/install-3.14-win-msys2-mingw-msmpi.sh

    r27202 r27944  
    2121
    2222MAKEFILE_GENERATOR='-G "MSYS Makefiles"'
     23PETSC_ARCH="arch-mswin-c-opt"
    2324PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" # DO NOT CHANGE THIS
    2425PREFIX="${ISSM_DIR}/externalpackages/petsc/install" # Set to location where external package should be installed
     
    3839rm -rf petsc-${VER}
    3940
    40 # Copy customized source files to $PETSC_DIR
    41 cp configs/3.14/win/msys2/mingw64/config/configure.py ${PETSC_DIR}/config
     41# Patch source
     42sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|' ${PETSC_DIR}/config/configure.py
     43sed -i 's|  chkusingwindowspython()|#  chkusingwindowspython()|' ${PETSC_DIR}/config/configure.py
     44sed -i 's|(MAKEFLAGS)|(MAKEFLAGS:w=)|' ${PETSC_DIR}/makefile ${PETSC_DIR}/lib/petsc/conf/rules # Fix for issue with GNUMake 4.4.1 (https://gitlab.com/petsc/petsc/-/merge_requests/6140)
    4245
    4346# Configure
     
    6972        --with-proc-filesystem=0 \
    7073        --with-mpiexec="${MPIEXEC_DIR}/mpiexec.exe" \
    71         --with-mpi-lib="-L${MSMPI_ROOT}/lib -lmsmpi" \
    72         --with-mpi-include="${MSMPI_ROOT}/include" \
     74        --with-mpi-lib=["-L${MSMPI_ROOT}/lib","-lmsmpi"] \
     75        --with-mpi-include=["${MSMPI_ROOT}/include"] \
    7376        --download-fblaslapack=1 \
    7477        --download-metis=1 \
     
    8184
    8285# Compile and install
    83 make
    84 make install
     86make PETSC_DIR="${PETSC_DIR}" PETSC_ARCH="${PETSC_ARCH}" all
     87make PETSC_DIR="${PETSC_DIR}" PETSC_ARCH="${PETSC_ARCH}" install
Note: See TracChangeset for help on using the changeset viewer.