pkg-config and rpm relocations

Kevin Fox Kevin.Fox at
Mon Apr 5 09:28:41 PDT 2010

I was looking into creating a relocatable RPM with a pkg-config file in
it and am trying to figure out how to deal with it. I'm wondering what
the correct way forward is...

Option 1, I can just fix up the .pc file in the postinstall rpm hook.
This would work but feels a bit unclean.

Option 2, pkg-config seems to already have some prefix relocation code
in it but its only enabled in Windows. Is there a reason for this? Would
it be acceptable to enable this on linux to follow the RPM relocation
semantics? They are slightly different then whats there now, but
wouldn't be hard to implement. I could probably whip up a patch for this
if someone is interested.


More information about the pkg-config mailing list