Skip to content

Commit

Permalink
hdf5: Fix build with CLT 15.0
Browse files Browse the repository at this point in the history
.

Closes: https://trac.macports.org/ticket/68194

* Remove `-commons` from configure, not supported in Sonoma/CLT 15.0.
* `-commons` no longer needed for HDF5 series 10.0 and later.

Was fixed upstream:  HDFGroup/hdf5#3581
  • Loading branch information
Dave-Allured authored Sep 23, 2023
1 parent 456fcb6 commit 28337b2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions science/hdf5/files/patch-no-commons.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- a/configure 2023-08-10 16:57:56.000000000 -0600
+++ b/configure 2023-09-22 23:08:25.000000000 -0600
@@ -11228,14 +11228,6 @@
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shared Fortran libraries are supported" >&5
printf %s "checking if shared Fortran libraries are supported... " >&6; }
H5_FORTRAN_SHARED="yes"
- ## tell libtool to do the right thing with COMMON symbols, this fixes
- ## corrupt values with COMMON and EQUIVALENCE when building shared
- ## Fortran libraries on OSX with gnu and Intel compilers (HDFFV-2772).
- case "`uname`" in
- Darwin*)
- H5_LDFLAGS="$H5_LDFLAGS -Wl,-commons,use_dylibs"
- ;;
- esac

## Report results of check(s)

0 comments on commit 28337b2

Please sign in to comment.