From: Stephane Glondu <steph@glondu.net>
Date: Tue, 16 Feb 2010 13:26:55 +0100
Subject: [PATCH] Set OCAMLLIB at the right time in wiki example

OCAMLLIB must not affect ocamlbuild itself. This patch fixes FTBFS on
bytecode architectures.
---
 examples/wiki/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/examples/wiki/Makefile b/examples/wiki/Makefile
index b3110ea..10234e9 100644
--- a/examples/wiki/Makefile
+++ b/examples/wiki/Makefile
@@ -1,7 +1,7 @@
 .PHONY=all clean
 
 all: vm.js
-	@OCAMLLIB=`pwd`/../../rt/caml ocamlbuild main.byte
+	@ocamlbuild -ocamlc 'OCAMLLIB=$(PWD)/../../rt/caml ocamlc' main.byte
 	@uuencode main.byte stdout > main.uue
 
 vm.js: ../../vm.js
-- 
