pkg-config and rpm relocations
Kevin Fox
Kevin.Fox at pnl.gov
Tue Apr 6 08:12:32 PDT 2010
On Mon, 2010-04-05 at 23:47 -0700, Tollef Fog Heen wrote:
> ]] Dan Nicholson
>
> (Kevin, not sure if you're subscribed or not, so Cc-ing you)
(For the record, I am. Thanks.)
>
> | You can already do that today just by setting the variables in your
> | .pc file appropriately.
> |
> | foo.pc:
> | relocatableprefix=
> | prefix=${relocatableprefix}/usr
> | exec_prefix=${prefix}
> | includedir=${prefix}/include
> | libdir=${exec_prefix}/lib
> |
> | Cflags: -I${includedir}
> | Libs.private: -L${libdir} -lfoo
> |
> | In fact, you can probably fake it today with most .pc files just by
> | using "pkg-config --define-variable=prefix=$relocatableprefix".
>
> I believe Kevin wants this to happen automatically, and you might
> reasonably want to relocate some, but not all of your libraries,
> something this approach does not support.
Exactly. :)
Kevin
>
More information about the pkg-config
mailing list