Cannot pass linker arguments to ld
Calling "gmake build-deps" from master, I see the attached error. It looks like ocamlmklib.opt needs the option "-L/usr/local/lib". How do I pass that in? I tried adding to src/lib_crypto/dune, but neither c_library_flags nor flags nor ocamlc_flags nor ocamlopt_flags resolves the issue. Can someone tell me how to fix this?
[ERROR] The compilation of secp256k1-internal failed at "/usr/home/web/src/vertalo/tezos/_opam/bin/dune build -j 7 -p
secp256k1-internal @install".
#=== ERROR while compiling secp256k1-internal.0.2.0 ===========================#
# context 2.0.6 | freebsd/x86_64 | ocaml-base-compiler.4.09.1 | git+https://gitlab.com/tezos/opam-repository.git#3718dd48d5e502c0fe8fc64ed4bf6b0c8040fadc
# path /usr/home/web/src/vertalo/tezos/_opam/.opam-switch/build/secp256k1-internal.0.2.0
# command /usr/home/web/src/vertalo/tezos/_opam/bin/dune build -j 7 -p secp256k1-internal @install
# exit-code 1
# env-file /usr/home/web/.opam/log/secp256k1-internal-95908-05296d.env
# output-file /usr/home/web/.opam/log/secp256k1-internal-95908-05296d.out
### output ###
# ocamlmklib src/dlllibsecp256k1_stubs.so,src/liblibsecp256k1_stubs.a (exit 2)
# (cd _build/default && /usr/home/web/src/vertalo/tezos/_opam/bin/ocamlmklib.opt -g -o src/libsecp256k1_stubs src/secp256k1.o src/secp256k1_wrap.o -lgmp)
# ld: error: unable to find library -lgmp
# cc: error: linker command failed with exit code 1 (use -v to see invocation)