diff options
-rw-r--r-- | byterun/dynlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/byterun/dynlink.c b/byterun/dynlink.c index ff1c7482b..4caba225e 100644 --- a/byterun/dynlink.c +++ b/byterun/dynlink.c @@ -72,7 +72,8 @@ static char * parse_ld_conf(void) struct stat st; int ldconf, nread; - stdlib = getenv("CAMLLIB"); + stdlib = getenv("OCAMLLIB"); + if (stdlib == NULL) stdlib = getenv("CAMLLIB"); if (stdlib == NULL) stdlib = OCAML_STDLIB_DIR; ldconfname = stat_alloc(strlen(stdlib) + 2 + sizeof(LD_CONF_NAME)); strcpy(ldconfname, stdlib); |