Prefix may be passed to configure using a Cygwin-style PATH (e.g.
`./configure --prefix ~/local`). Use cygpath to ensure that the correct
version gets written to Makefile.config, or the resulting compiler has
an invalid default stdlib path.
This commit makes it possible to build the OCaml compiler according to
its configuration by simply runnning make. There is no need to specify
neither world nor world.opt explicitly, although the two targets
remain available.
This commit also introduces (and starts making use of) the
NATIVE_COMPILER build variable whosse value is true when the native
compiler is enabled and false otherwise.
The Graphics library is now distributed as a separate package.
The sources are at https://github.com/ocaml/graphics .
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
In order to prepare the transition to autoconf, this commit moves the
configuration Makefile out of the config directory which will disappear
and gives it the name it will have once intstalled, namely Makefile.config.
* MPR#6411 revisited
Including -static-libgcc in all link instructions prevents C++ exceptions
from ever working. mmap.o is the only affected unit, since it needs
auxiliary functions to perform division of an __int64. A better fix is to
specify --static-libgcc only when building dllbigarray.dll and dllunix.dll
(since they both export versions of this primitive).
* Correct -static-libgcc error in README.win32.adoc
The instructions for the mingw64 port added in 600a93d amended the
sentence about -static-libgcc to include config/Makefile.mingw64. The
64-bit mingw port has never required or included this flag.
This commit moves:
- config/m.h to byterun/caml/m.h
- config/s.h to byterun/caml/s.h
Consequently, m.h and s.h now get installed alongside other
OCaml header files.
This commit also updates the .depend files, introducing updates in the
dependencies which are not consequences of this commit itself.
Simplified the instructions by de-duplicating the 32/64-bit instructions
now that every port is available for both architectures.
Removed out-of-date Cygwin information.
Included details on the new FlexDLL bootstrapping procedure.
Cygwin is a flavour of Unix. Coupled with the fact that it is built
using the normal Unix configure route, it adds to the confusion of the
Windows ports (especially the fact that the four native ports need a
Cygwin environment to be compiled) including its instructions in the
native port.
Various out-of-date instructions also removed: Cygwin hasn't provided
GCC 4.5.3 for a long time and FlexDLL can be recompiled from sources
without alteration since version 0.32.