pkg-config and rpm relocations

Tollef Fog Heen tfheen at
Mon Apr 5 23:47:23 PDT 2010

]] Dan Nicholson 

(Kevin, not sure if you're subscribed or not, so Cc-ing you)

| 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.

Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

More information about the pkg-config mailing list