mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-31 15:02:17 +00:00
Preliminary support for M1 builds
NOTE: I don't have an M1 box right now, so I can only test with a non-`/usr/local` _Intel_ Homebrew install. This takes care of the "`cc` shim forbids `/usr/local` paths unless `HOMEBREW_PREFIX` is the same", but there may be other M1-specific issues.
This commit is contained in:
parent
98826c8178
commit
7b0c9b121c
1 changed files with 23 additions and 0 deletions
23
lib/fuse-pkg-config
Executable file
23
lib/fuse-pkg-config
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
fuse_root=%FUSE_ROOT%
|
||||||
|
|
||||||
|
# Collect args
|
||||||
|
pkgs=()
|
||||||
|
flags=()
|
||||||
|
|
||||||
|
for a in "$@"; do
|
||||||
|
[[ $a == -* ]] && flags+=("$a") || pkgs+=("$a")
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ ${#pkgs[@]} -eq 0 ]]; then
|
||||||
|
pkg-config "${flags[@]}"
|
||||||
|
else
|
||||||
|
for p in "${pkgs[@]}"; do
|
||||||
|
if [[ $p == fuse ]]; then
|
||||||
|
pkg-config "${flags[@]}" "$p" | sed "s@/usr/local@${fuse_root}@g"
|
||||||
|
else
|
||||||
|
pkg-config "${flags[@]}" "$p"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue