Skip to content

Commit

Permalink
added stuff to MACOS to add support for /opt/local and /opt/homebrew …
Browse files Browse the repository at this point in the history
…for building.
  • Loading branch information
simsong committed Apr 27, 2024
1 parent 24cecdc commit 9646596
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions etc/CONFIGURE_MACOS.bash
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ PKGS+="wget libtool autoconf automake libtool libxml2 libewf json-c re2 abseil p
$WHICH install $PKGS || (echo installation install failed; exit 1)

echo ================
echo Updating .profile
echo 'PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH"' >> $HOME/.profile
echo 'export PATH="/opt/homebrew/opt/libxml2/bin:$PATH"' >> $HOME/.profile
echo 'export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/libxml2/lib $LDFLAGS" ' >> $HOME/.profile
echo 'export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/libxml2/include $CPPFLAGS" ' >> $HOME/.profile
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH"' >> $HOME/.profile
echo Updating .bashrc
echo 'PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH"' >> $HOME/.bashrc
echo 'export PATH="/opt/homebrew/opt/libxml2/bin:$PATH"' >> $HOME/.bashrc
echo 'export LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/libxml2/lib $LDFLAGS" ' >> $HOME/.bashrc
echo 'export CPPFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/libxml2/include $CPPFLAGS" ' >> $HOME/.bashrc
echo 'export PKG_CONFIG_PATH="/opt/homebrew/opt/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH"' >> $HOME/.bashrc
echo ================
source $HOME/.profile
source $HOME/.bashrc
printenv
exit 0

0 comments on commit 9646596

Please sign in to comment.