Difference between revisions of "Objective Caml"

From CBLFS
Jump to navigationJump to search
 
(10 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.3.tar.bz2
+
| http://caml.inria.fr/pub/distrib/ocaml-{{Objective Caml-Version2}}/ocaml-{{Objective Caml-Version}}.tar.bz2
 
|}
 
|}
  
 
----
 
----
 +
 +
{{Package-Introduction||http://caml.inria.fr/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 30: Line 32:
 
=== 32Bit ===
 
=== 32Bit ===
  
Compile the package:
+
Configure the package:
  
 
  sed -i "/aspp=/s/'gcc'/'gcc ${BUILD32}'/g" configure &&
 
  sed -i "/aspp=/s/'gcc'/'gcc ${BUILD32}'/g" configure &&
 
  ./configure --prefix /usr --with-pthread -host ${CLFS_TARGET32} \
 
  ./configure --prefix /usr --with-pthread -host ${CLFS_TARGET32} \
  -cc "gcc ${BUILD32}" --x11lib ${XORG_PREFIX}/lib &&
+
  -cc "gcc ${BUILD32}" --x11lib ${XORG_PREFIX}/lib
 +
 
 +
Force the assembler to compile 32bit code:
 +
 
 +
make asmcomp/proc.ml &&
 +
sed -i "/Ccomp.command/s/as/as --32/g" asmcomp/proc.ml
 +
 
 +
Compile the package:
 +
 
 
  make world &&
 
  make world &&
 
  make opt &&
 
  make opt &&
Line 41: Line 51:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
for file in camlp4 camlp4o camlp4o.opt camlp4r camlp4r.opt labltk mkcamlp4 \
 +
  ocaml ocamlbrowser ocamlc ocamlc.opt ocamldebug ocamldep ocamldep.opt \
 +
  ocamldoc ocamldoc.opt ocamlopt ocamlopt.opt ocamlprof ocamlrun ocpp
 +
do
 +
  mv -v /usr/bin/$file{,-32}
 +
done
  
 
=== N32 ===
 
=== N32 ===
Line 60: Line 76:
 
Install the package
 
Install the package
  
  make install
+
  make install &&
 +
for file in camlp4 camlp4o camlp4o.opt camlp4r camlp4r.opt labltk mkcamlp4 \
 +
  ocaml ocamlbrowser ocamlc ocamlc.opt ocamldebug ocamldep ocamldep.opt \
 +
  ocamldoc ocamldoc.opt ocamlopt ocamlopt.opt ocamlprof ocamlrun ocpp
 +
do
 +
  mv -v /usr/bin/$file{,-64}
 +
  ln -sfv multiarch_wrapper /usr/bin/$file
 +
done
 +
 
 +
[[Category:Programming]]

Latest revision as of 17:00, 19 March 2009

Download Source: http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.1.tar.bz2

Introduction to Objective Caml

Project Homepage: http://caml.inria.fr/

Dependencies

Optional

Non-Multilib

Compile the package:

./configure --prefix /usr --with-pthread --x11lib ${XORG_PREFIX}/lib &&
make world &&
make opt &&
make opt.opt

Install the package

make install

Multilib

32Bit

Configure the package:

sed -i "/aspp=/s/'gcc'/'gcc ${BUILD32}'/g" configure &&
./configure --prefix /usr --with-pthread -host ${CLFS_TARGET32} \
-cc "gcc ${BUILD32}" --x11lib ${XORG_PREFIX}/lib

Force the assembler to compile 32bit code:

make asmcomp/proc.ml &&
sed -i "/Ccomp.command/s/as/as --32/g" asmcomp/proc.ml

Compile the package:

make world &&
make opt &&
make opt.opt

Install the package

make install &&
for file in camlp4 camlp4o camlp4o.opt camlp4r camlp4r.opt labltk mkcamlp4 \
  ocaml ocamlbrowser ocamlc ocamlc.opt ocamldebug ocamldep ocamldep.opt \
  ocamldoc ocamldoc.opt ocamlopt ocamlopt.opt ocamlprof ocamlrun ocpp
do
  mv -v /usr/bin/$file{,-32}
done

N32

Working Configuration Unknown

64Bit

Compile the package:

sed -i "/aspp=/s/'gcc'/'gcc ${BUILD64}'/g" configure &&
./configure --prefix /usr --with-pthread -libdir /usr/lib64/ocaml \
-cc "gcc ${BUILD64}" --x11lib ${XORG_PREFIX}/lib64 &&
make world &&
make opt &&
make opt.opt

Install the package

make install &&
for file in camlp4 camlp4o camlp4o.opt camlp4r camlp4r.opt labltk mkcamlp4 \
  ocaml ocamlbrowser ocamlc ocamlc.opt ocamldebug ocamldep ocamldep.opt \
  ocamldoc ocamldoc.opt ocamlopt ocamlopt.opt ocamlprof ocamlrun ocpp
do
  mv -v /usr/bin/$file{,-64}
  ln -sfv multiarch_wrapper /usr/bin/$file
done