Add binutils to the Mac OS path
This commit is contained in:
parent
8b65dfd176
commit
5023aaa8fc
8
.profile
8
.profile
@ -1,15 +1,17 @@
|
|||||||
PATH="$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.cabal/bin:$PATH"
|
PATH="$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.ghcup/bin:$HOME/.cabal/bin:$HOME/.rd/bin:$PATH"
|
||||||
|
|
||||||
if [ -x /opt/homebrew/bin/brew ]
|
if [ -x /opt/homebrew/bin/brew ]
|
||||||
then
|
then
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
|
||||||
PATH="/usr/local/bin:$PATH"
|
# Overriding Mac OS provided binutils breakes cross compiling binutils. But
|
||||||
|
# the binutils project also provides "g"-prefixed binaries.
|
||||||
|
PATH="/usr/local/bin:$PATH:$HOMEBREW_PREFIX/opt/binutils/bin"
|
||||||
for tool in flex bison
|
for tool in flex bison
|
||||||
do
|
do
|
||||||
PATH="$HOMEBREW_PREFIX/opt/$tool/bin:$PATH"
|
PATH="$HOMEBREW_PREFIX/opt/$tool/bin:$PATH"
|
||||||
done
|
done
|
||||||
for tool in libtool coreutils grep gnu-sed findutils make
|
for tool in libtool coreutils grep gnu-sed findutils make gpatch
|
||||||
do
|
do
|
||||||
PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH"
|
PATH="$HOMEBREW_PREFIX/opt/$tool/libexec/gnubin:$PATH"
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user