From 84643c629db671e9270fdec11bb1271969367ee1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 16 Oct 2009 15:31:50 +0000 Subject: [PATCH] - Set includes so building the *info programs works without having OCaml already installed. --- ocaml.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ocaml.spec b/ocaml.spec index 8d97c3b..730f0ae 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -2,7 +2,7 @@ Name: ocaml Version: 3.11.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Objective Caml compiler and programming environment @@ -220,9 +220,10 @@ make -C emacs ocamltags # Currently these tools are supplied by Debian, but are expected # to go upstream at some point. cp %{SOURCE6} %{SOURCE7} . -boot/ocamlrun ./ocamlc -I otherlibs/dynlink dynlinkaux.cmo ocamlbyteinfo.ml -o ocamlbyteinfo +includes="-nostdlib -I stdlib -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I otherlibs/unix -I otherlibs/str -I otherlibs/dynlink" +boot/ocamlrun ./ocamlc $includes dynlinkaux.cmo ocamlbyteinfo.ml -o ocamlbyteinfo cp otherlibs/dynlink/natdynlink.ml . -boot/ocamlrun ./ocamlopt unix.cmxa str.cmxa natdynlink.ml ocamlplugininfo.ml -o ocamlplugininfo +boot/ocamlrun ./ocamlopt $includes unix.cmxa str.cmxa natdynlink.ml ocamlplugininfo.ml -o ocamlplugininfo %install @@ -450,6 +451,10 @@ fi %changelog +* Fri Oct 16 2009 Richard W.M. Jones - 3.11.1-4 +- Set includes so building the *info programs works without + having OCaml already installed. + * Fri Oct 16 2009 Richard W.M. Jones - 3.11.1-3 - Add ocamlbyteinfo and ocamlplugininfo programs from Debian.