Created
April 22, 2026 16:41
-
-
Save atomicstack/0f9b379379ff48d2d89ddde4778b90d2 to your computer and use it in GitHub Desktop.
autogen.sh invoker to build libqalculate on macos+homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| for pkg in gmp mpfr icu4c readline; do | |
| PREFIX="$(brew --prefix $pkg)" | |
| CPPFLAGS="$CPPFLAGS -I$PREFIX/include" | |
| LDFLAGS="$LDFLAGS -L$PREFIX/lib" | |
| PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PREFIX/lib/pkgconfig" | |
| done | |
| export CPPFLAGS LDFLAGS PKG_CONFIG_PATH | |
| export CXXFLAGS="-std=c++17" | |
| ./autogen.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment