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 26, 2024
1 parent 972d746 commit 37e0141
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/continuous-integration-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ jobs:
gcc --version
g++ --version
- name: setenv
run: |
export ENV_TEST_ONE=1
- name: printenv
run: |
printenv
Expand Down
17 changes: 13 additions & 4 deletions etc/CONFIGURE_MACOS.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ PKGS+="wget libtool autoconf automake libtool libxml2 libewf json-c re2 abseil p

$WHICH install $PKGS || (echo installation install failed; exit 1)

# Validate installation
ls -l /opt/homebrew/lib/pkgconfig
echo == re2 ==
cat /opt/homebrew/lib/pkgconfig/re2.pc
echo ================
echo Updating .profile
cat >> $HOME/.profile <<
for PREFIX in /opt/local /opt/homebrew ; do
if [ -x $PREFIX/include ]; then
export CPPFLAGS="-I$PREFIX/include/ $CPPFLAGS"
fi
if [ -x $PREFIX/lib ]; then
export LDFLAGS="-L$PREFIX/lib/ $LDFLAGS"
fi
done
EOF

exit 0

0 comments on commit 37e0141

Please sign in to comment.