Dans header.c, visser en dur le chemin $(BINDIR)/ocamlrun
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1314 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
3693be4981
commit
73fafe47ff
|
@ -35,8 +35,9 @@ stdlib.cmxa: $(OBJS:.cmo=.cmx)
|
|||
camlheader: header.c ../config/Makefile
|
||||
if $(SHARPBANGSCRIPTS); \
|
||||
then echo "#!$(BINDIR)/ocamlrun" > camlheader; \
|
||||
else $(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) header.c -o camlheader; \
|
||||
strip camlheader; fi
|
||||
else $(BYTECC) $(BYTECCCOMPOPTS) $(BYTECCLINKOPTS) '-DRUNTIME_NAME="$(BINDIR)/ocamlrun"' header.c -o camlheader; \
|
||||
strip camlheader; \
|
||||
fi
|
||||
|
||||
clean::
|
||||
rm -f camlheader
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
/* $Id$ */
|
||||
|
||||
char * runtime_name = "ocamlrun";
|
||||
char runtime_name [] = RUNTIME_NAME;
|
||||
char errmsg [] = "Cannot exec ocamlrun.\n";
|
||||
|
||||
int main(argc, argv)
|
||||
|
|
Loading…
Reference in New Issue