commit df6bc2e2207aa6e546ba7aa728139f78667592fd Author: Christoph Cullmann Date: Sun Mar 3 12:49:16 2019 +0100 bug 25950: try some minimal invasive patch diff --git a/src/configure b/src/configure index 1316b3c1e..e40de4fdb 100755 --- a/src/configure +++ b/src/configure @@ -331,7 +331,7 @@ case "$bindir" in *) config BINDIR "$bindir";; esac -config BYTERUN '$(BINDIR)/ocamlrun' +config BYTERUN '/usr/bin/env ocamlrun' case "$libdir" in "") config LIBDIR '$(PREFIX)/lib/ocaml' diff --git a/src/stdlib/Makefile b/src/stdlib/Makefile index 4b044914d..11db27811 100644 --- a/src/stdlib/Makefile +++ b/src/stdlib/Makefile @@ -143,8 +143,8 @@ CAMLHEADERS =\ ifeq "$(HASHBANGSCRIPTS)" "true" $(CAMLHEADERS): ../config/Makefile for suff in '' d i; do \ - echo '#!$(BINDIR)/ocamlrun'$$suff > camlheader$$suff && \ - echo '#!$(TARGET_BINDIR)/ocamlrun'$$suff >target_camlheader$$suff; \ + echo '#!/usr/bin/env ocamlrun'$$suff > camlheader$$suff && \ + echo '#!/usr/bin/env ocamlrun'$$suff >target_camlheader$$suff; \ done && \ echo '#!' | tr -d '\012' > camlheader_ur; else # Hashbang scripts not supported