Hello Daniel,

* Daniel Neuberger wrote on Wed, Apr 20, 2011 at 03:56:15PM CEST:
> Is there any way to make a dependent library implicitly use any
> compiler flags used by a library on which it depends?

Not automatically.  libtool has 'inherited_linker_flags', but it is not
appropriate for your use case (and of limited usefulness otherwise).

The typical way to solve issues like this is to write a macro AX_LIBFOO
or so, shipped with libfoo, that provides flags for users of libfoo.
That, or a pkg-config file with pretty much the same information.

Hope that helps.

Cheers,
Ralf

Reply via email to