cd src

# We add -ltinfo flag to let gdb compile on some 32bit VM, see #22487.
export LDFLAGS="${LDFLAGS} -L${SAGE_LOCAL}/lib -ltinfo"

sdh_configure \
    --with-mpc="$SAGE_LOCAL" \
    --with-mpfr="$SAGE_LOCAL" \
    --with-gmp="$SAGE_LOCAL"
sdh_make
sdh_make_install
