Skip to content

Commit b7ae537

Browse files
committed
try 6
1 parent c76734d commit b7ae537

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

contrib/install_yices2.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
#!/bin/bash
22
set -e
33

4+
# Find Homebrew prefix for macOS and set build flags for dependencies
5+
if [[ "$(uname)" == "Darwin" ]]; then
6+
if [ -d /opt/homebrew ]; then
7+
BREW_PREFIX=/opt/homebrew
8+
else
9+
BREW_PREFIX=/usr/local
10+
fi
11+
export CPPFLAGS="-I$BREW_PREFIX/include"
12+
export LDFLAGS="-L$BREW_PREFIX/lib"
13+
export PKG_CONFIG_PATH="$BREW_PREFIX/lib/pkgconfig"
14+
export LD_LIBRARY_PATH="$BREW_PREFIX/lib:$LD_LIBRARY_PATH"
15+
echo "[INFO] macOS build flags set:"
16+
echo "CPPFLAGS=$CPPFLAGS"
17+
echo "LDFLAGS=$LDFLAGS"
18+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
19+
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
20+
fi
421

522
# libpoly
623
pushd .

0 commit comments

Comments
 (0)