cc shim path sanitization workaround

Homebrew's `cc` shim removes all `/usr/local` paths for non-`/usr/local`
Homebrew installations (e.g. Apple Silicon Homebrew). This adds a
`setup_fuse` method that copies FUSE files into a temp hierarchy for
use during builds. (Symlinking the files doesn't work because the
shim canonicalizes all paths.)

Also add `ntfs-3g-mac` as a test case.
This commit is contained in:
Adrian Ho 2021-06-30 23:31:40 +08:00
parent eb3fb874c1
commit cff1a61202
2 changed files with 23 additions and 7 deletions

View file

@ -37,6 +37,7 @@ class Ntfs3gMac < Formula
depends_on :macos
def install
setup_fuse
ENV.append "LDFLAGS", "-lintl"
args = %W[