mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 13:06:38 +00:00
chore(native_comp): add GNU-based tools to PATH in patched GCC helper script
An attempt at resolving #8 by getting the GCC compilation step to have GNU-based `sed` and other commands available. At the very least, I'm assuming this won't break things. Fingers crossed.
This commit is contained in:
@@ -9,6 +9,18 @@ if [ ! -f "$formula" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
gnubins=(
|
||||||
|
"${brewdir}/opt/coreutils/libexec/gnubin"
|
||||||
|
"${brewdir}/opt/make/libexec/gnubin"
|
||||||
|
"${brewdir}/opt/gnu-sed/libexec/gnubin"
|
||||||
|
)
|
||||||
|
|
||||||
|
for gnubin in "${gnubins[@]}"; do
|
||||||
|
if [ -d "$gnubin" ]; then
|
||||||
|
export PATH="${gnubin}:$PATH"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
cp "$formula" ./Formula/
|
cp "$formula" ./Formula/
|
||||||
|
|
||||||
patch -f -p1 -i ./Formula/gcc.rb.patch
|
patch -f -p1 -i ./Formula/gcc.rb.patch
|
||||||
|
|||||||
Reference in New Issue
Block a user