From 53a7f2ffec1f7b014db4909371e0c1b1576ba10a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 18 Jan 2019 13:22:26 +0100 Subject: [PATCH] build: integrate ocaml-link.sh with automake silent rules In case either the silent rules are disabled, or V=1 is set, print the full command line that is executed. (cherry picked from commit a8006afaf545d5188f592d8583f9dc373ded7671) --- ocaml-link.sh.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ocaml-link.sh.in b/ocaml-link.sh.in index 129c6fb0e..ba990f809 100755 --- a/ocaml-link.sh.in +++ b/ocaml-link.sh.in @@ -43,6 +43,14 @@ while true ; do esac done +# Integration with silent rules of automake: print the full command +# line option in verbose mode. +if [ x"${V:-@AM_DEFAULT_VERBOSITY@}" = x1 ]; then + echo "$@" \ + @OCAML_RUNTIME_VARIANT_PIC_OPTION@ \ + -linkpkg \ + -cclib "'@LDFLAGS@ $cclib'" +fi # NB -cclib must come last. exec "$@" \ @OCAML_RUNTIME_VARIANT_PIC_OPTION@ \