Thanks!
For a reference, using a Fish shell, this solved the problem:
set -gx SDKROOT “$(xcrun --sdk macosx --show-sdk-path)”
set -gx LD_LIBRARY_PATH “$SDKROOT/usr/lib”
set -gx LDFLAGS “-L$SDKROOT/usr/lib”
set -gx LIBRARY_PATH “$SDKROOT/usr/lib”