Two C projects to test linkage to libarchive/libarchive and general example on static vs. dynamic linking
Install:
brew install libarchiveUse
brew info libarchive
# produces
export LDFLAGS="-L/opt/homebrew/opt/libarchive/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libarchive/include"The GitHub release page for libarchive