build.sh 910 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. set -x
  3. export CPPFLAGS="${CPPFLAGS/-DNDEBUG/} -I${PREFIX}/include"
  4. export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib"
  5. if [[ ${HOST} =~ .*linux.* ]]; then
  6. export LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags"
  7. fi
  8. # https://github.com/conda-forge/bison-feedstock/issues/7
  9. export M4="${BUILD_PREFIX}/bin/m4"
  10. pushd src
  11. autoreconf -i
  12. ./configure --prefix=${PREFIX} \
  13. --host=${HOST} \
  14. --build=${BUILD} \
  15. --with-tcl=${PREFIX} \
  16. --without-readline \
  17. --with-libedit \
  18. --with-crypto-impl=openssl \
  19. --with-tls-impl=openssl \
  20. --without-system-verto
  21. make -j${CPU_COUNT} ${VERBOSE_AT}
  22. # Turn off built-in test since they rely on network configurations we
  23. # cannot guarantee on our CI systems.
  24. #make check
  25. make install
  26. popd