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 a8006afaf5)
This commit is contained in:
Pino Toscano
2019-01-18 13:22:26 +01:00
committed by Richard W.M. Jones
parent 1f026244ba
commit 53a7f2ffec

View File

@@ -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@ \