de30324362
ocaml apps compiled using it. Issue was that the configure script which tried threads gets confused by the spurious OpenBSD linker warnings about sprintf and falls back to VM threads. Bump PKGNAME, and trim an unneeded line from PLIST while here. Reported by Adam Montague <amontague@siriushosting.com> and Ivan M Makarenko <I.Makarenko@zsttk.ru>.
32 lines
939 B
Plaintext
32 lines
939 B
Plaintext
$OpenBSD: patch-configure,v 1.1 2006/12/26 23:09:32 avsm Exp $
|
|
--- configure.orig Tue Dec 26 21:59:27 2006
|
|
+++ configure Tue Dec 26 22:00:00 2006
|
|
@@ -264,25 +264,8 @@ fi
|
|
######################################################################
|
|
# Test the threading model
|
|
|
|
-echo "Testing threading model..."
|
|
-
|
|
-if ocamlc -vmthread >/dev/null 2>/dev/null; then
|
|
- :
|
|
-else
|
|
- echo "The -vmthread switch is not supported: Your ocaml version is too old!"
|
|
- exit 1
|
|
-fi
|
|
-
|
|
-rm -f itest-aux/simple
|
|
-ocamlc -w a -custom -thread -o itest-aux/simple unix.cma threads.cma itest-aux/simple_threads.ml \
|
|
- >itest-aux/err.out 2>&1
|
|
-output=`cat itest-aux/err.out`
|
|
-
|
|
-if [ -z "$output" ]; then
|
|
- ocaml_threads="posix"
|
|
-else
|
|
- ocaml_threads="vm"
|
|
-fi
|
|
+echo "Setting threading model to posix..."
|
|
+ocaml_threads="posix"
|
|
|
|
######################################################################
|
|
# Does this version of OCaml support autolinking?
|