From dd0fa1a38613af80e3b261eb5e6be1b6f40a8bda Mon Sep 17 00:00:00 2001 From: glondu Date: Fri, 5 Sep 2008 06:09:09 +0000 Subject: Parametrize link flags for VM-dependent bytecode * Remove unneeded -custom flags. * Replace needed ones by a configure parameter. Setting it to "-dllib -lcoqrun" enables the creation/usage of pure bytecode executable provided the so/dll with the VM is found by ocamlrun. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@11363 85f007b7-540e-0410-9357-904b9bb8a0f7 --- config/Makefile.template | 3 +++ config/coq_config.mli | 2 ++ 2 files changed, 5 insertions(+) (limited to 'config') diff --git a/config/Makefile.template b/config/Makefile.template index a48bbceb9..cd19503ad 100644 --- a/config/Makefile.template +++ b/config/Makefile.template @@ -21,6 +21,9 @@ COQ_CONFIGURED=yes # Local use (no installation) LOCAL=LOCALINSTALLATION +# Bytecode link flags for VM ("-custom" or "-dllib -lcoqrun") +COQRUNBYTEFLAGS=XCOQRUNBYTEFLAGS + # Paths for true installation # BINDIR=path where coqtop, coqc, coqmktop, coq-tex, coqdep, gallina and # do_Makefile will reside diff --git a/config/coq_config.mli b/config/coq_config.mli index e8c1b5304..46404215f 100644 --- a/config/coq_config.mli +++ b/config/coq_config.mli @@ -24,6 +24,8 @@ val camlp4lib : string (* where is the library of Camlp4 *) val best : string (* byte/opt *) val arch : string (* architecture *) val osdeplibs : string (* OS dependant link options for ocamlc *) +val coqrunbyteflags : string (* -custom/-dllib -lcoqrun *) + (* val defined : string list (* options for lib/ocamlpp *) *) -- cgit v1.2.3