patch-configure 605 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-configure,v 1.1.1.1 2014/09/04 16:46:37 chrisz Exp $
  2. fix bytecode only building. Already included upstream.
  3. --- configure.orig Thu Sep 4 18:35:17 2014
  4. +++ configure Thu Sep 4 18:35:40 2014
  5. @@ -45,6 +45,12 @@ LIBDIR="${LIBDIR:-$standard_library}"
  6. BINDIR="${BINDIR:-`dirname $OCAMLC`}"
  7. PKGDIR="${PKGDIR:-$standard_library/camlp4}"
  8. +if [ -x "`which ocamlopt`" ]; then
  9. + OB_FLAGS=""
  10. +else
  11. + OB_FLAGS="-byte-plugin"
  12. +fi
  13. +
  14. cat >> config.sh <<EOF
  15. A="$ext_lib"
  16. O="$ext_obj"
  17. @@ -52,4 +58,5 @@ EXE="$ext_exe"
  18. LIBDIR="$LIBDIR"
  19. BINDIR="$BINDIR"
  20. PKGDIR="$PKGDIR"
  21. +OB_FLAGS=$OB_FLAGS
  22. EOF