Re: custom bytecode executables, build-deps, and runtime deps
On Wed, Apr 16, 2008 at 10:28:01 -0400, Eric Cooper wrote:
> What is the Right Thing to do here? I shouldn't have to know how a
> library is implemented (whether or not it uses C stubs) in order to
> build a correct application, but it seems I do (or else always blindly
> turn on -custom). And even if I'm aware of the problem, how should I
> manually add a Depends on libpcre-ocaml on only certain architectures?
> Shouldn't the shlibs:Depends machinery handle this?
The simplest thing to do is probably to use -custom. Your package is
arch-dependent anyway, so building it as an ocamlrun executable won't
save much afaik.
shlibs:Depends can't be used here because ocamlrun will dlopen() the
pcre stubs library, so it'll be hard to detect.
Cheers,
Julien
Reply to: