Skip to content

Commit

Permalink
BUG: need to provide specific LD_FLAGS and tweak setCompiler.py to ma…
Browse files Browse the repository at this point in the history
…ke it work on Sonoma
  • Loading branch information
MathieuMorlighem committed Jul 22, 2024
1 parent eddbc51 commit 2364937
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions externalpackages/petsc/install-3.21-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ mkdir -p ${PETSC_DIR}
mv petsc-${VER}/* ${PETSC_DIR}
rm -rf petsc-${VER}

# Edit configuration script
sed -i.bak '/warning: -commons use_dylibs is no longer supported, using error treatment instead/d' src/config/BuildSystem/config/setCompilers.py


# Configure
cd ${PETSC_DIR}
./configure \
--prefix="${PREFIX}" \
--PETSC_DIR="${PETSC_DIR}" \
--CFLAGS="-g -O2" --CXXFLAGS="-g -O2" --FFLAGS="-g -O2" \
--LDFLAGS="-Wl,-ld_classic -Wl,-commons,use_dylibs" \
--with-debugging=1 \
--with-valgrind=0 \
--with-x=0 \
Expand Down

0 comments on commit 2364937

Please sign in to comment.