patch itself


What is it?
===========

This is a patch against OCaml 3.02 sources useful for producing shared
libraries on i386 ELF systems.

How OCaml was changed?
======================

Added `-shared' option to ocamlopt native code compiler, telling
compiler to output shared object instead of executable. For summary
of changes see ChangeLog.

What is needed?
===============

OCaml 3.02 sources (and all the prerequisites), patch, CVS version of
GNU binutils (no earlier than 4 October 2001)

How to apply the patch?
=======================

Go to directory where OCaml 3.02 sources where installed and issue
following command `patch -p0 <[PATH_TO_PATCH/]1_shared.patch' where
PATH_TO_PATCH is directory where 1_shared.patch is located. Then
follow normal OCaml installation instructions.

How to use it?
==============

ocamlopt -shared -o labltk.so -I +labltk labltk.cmxa -linkall
ocamlopt -o tkiface -I +labltk labltk.so.cmxa tkiface.ml \
         -cclib -Wl,-rpath,.,-lX11


Ways to get new ld (4 October 2001 and beyond):


Malcy

Last modified: Sat Oct 6 06:01:05 MSD 2001