Skip to content

Instantly share code, notes, and snippets.

@atomicstack
Created April 22, 2026 16:41
Show Gist options
  • Select an option

  • Save atomicstack/0f9b379379ff48d2d89ddde4778b90d2 to your computer and use it in GitHub Desktop.

Select an option

Save atomicstack/0f9b379379ff48d2d89ddde4778b90d2 to your computer and use it in GitHub Desktop.
autogen.sh invoker to build libqalculate on macos+homebrew
#!/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