Skip to content

Commit

Permalink
hdf5: fix build for Xcode 15.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamschula committed Sep 28, 2023
1 parent a95b034 commit 3d830f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions science/hdf5/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ configure.args \
--with-szlib=${prefix}/lib/libaec \
--with-zlib=yes

if { [vercmp ${xcodeversion} >= 15.0] || [vercmp ${xcodecltversion} >= 15.0] } {
# On macOS13 and newer ensure the 'legacy' linker is used as GCC currently has problems
# with the new default linker in Xcode 15. See e.g.
# https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking
# https://discussions.apple.com/thread/255137447
# https://developer.apple.com/forums/thread/737707
# https://github.com/Homebrew/homebrew-core/issues/145991
configure.env LDFLAGS=-ld_classic
}

# Actively checks how to get clang to warn on implicit functions with this.
configure.checks.implicit_function_declaration.whitelist-append strchr

Expand Down

0 comments on commit 3d830f3

Please sign in to comment.