aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorGravatar glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-09-05 06:09:09 +0000
committerGravatar glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-09-05 06:09:09 +0000
commitdd0fa1a38613af80e3b261eb5e6be1b6f40a8bda (patch)
tree551802cc4c5f745fbee92515925ef79f1f600e4e /config
parent0f4d785afdcca74dd84f75d3b487a64e624fb66c (diff)
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
Diffstat (limited to 'config')
-rw-r--r--config/Makefile.template3
-rw-r--r--config/coq_config.mli2
2 files changed, 5 insertions, 0 deletions
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 *) *)