Stubs c - shared and static libs

Hi,
I’m sorry to reopen this ticket, I seem to still struggle with it (lib). When I insert the cflags directly in the lib dune file it’s not able to find it whereas when I use it in the example dune file, there is no
error.

Dune from the lib directory (flags generate errors here) :

(library
  (public_name tezos_oxymeter)
  (name tezos_oxymeter)
  (flags (:standard -w -49
                    -cclib -lstdc++
                    -cclib -lraplcap-msr
                    -cclib -lsmartgauge
                    -cclib -lusb-1.0
                    -cclib -lmammut
                    -linkall))
  (libraries re
             yojson
             lwt
             lwt.unix
             mammut
             mammut.generated
             data-encoding))

Dune from the example directory :

(executable
  (name main)
  (flags (:standard -w -49
                    -cclib -lstdc++
                    -cclib -lraplcap-msr
                    -cclib -lsmartgauge
                    -cclib -lusb-1.0
                    -cclib -lmammut))
  (libraries tezos_oxymeter))

Because of it, I’m not able to build a self contain library… Would you have any suggestions ?