[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Implicitly specify compiler flags based on library dependencies
From: |
Ralf Wildenhues |
Subject: |
Re: Implicitly specify compiler flags based on library dependencies |
Date: |
Thu, 21 Apr 2011 01:24:21 +0200 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
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