summaryrefslogtreecommitdiffstats
path: root/byterun/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/startup.c')
-rw-r--r--byterun/startup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/byterun/startup.c b/byterun/startup.c
index 19c77eb75..77734ace7 100644
--- a/byterun/startup.c
+++ b/byterun/startup.c
@@ -216,7 +216,10 @@ static void scanmult (char *opt, long unsigned int *var)
static void parse_camlrunparam(void)
{
- char *opt = getenv ("CAMLRUNPARAM");
+ char *opt = getenv ("OCAMLRUNPARAM");
+
+ if (opt == NULL) opt = getenv ("CAMLRUNPARAM");
+
if (opt != NULL){
while (*opt != '\0'){
switch (*opt++){