1

I have a library that contains code compiled with dflags -fPIC. The library is a static one but get's linked into a (c++) shared library. So I need the -fPIC flag. I can add the dflags to dub.json, but I add a dependency to a different library, the dependency gets compiled without -fPIC. Is it possible to pass the -fPIC flag on to the other library?

David Feurle
  • 2,687
  • 22
  • 38

0 Answers0