Bug 63602

Summary: Make Windows --define-prefix behavior available everywhere
Product: pkg-config Reporter: Dan Nicholson <dbn.lists>
Component: srcAssignee: Dan Nicholson <dbn.lists>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: freedesktop, lrn1986
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Dan Nicholson 2013-04-16 12:46:04 UTC
When pkg-config is built for Windows, it will override the .pc file's prefix variable by detecting where the .pc file is actually installed. This is because Windows users are not expected to follow a fixed directory tree like on Unix. Users then are likely to have different paths than the paths built into the .pc file. Overriding the prefix allows the .pc file to be relocatable even when the builder had no intention of it.

This relocatable feature would be useful everywhere, though. It should be made available on all platforms, but continue to default to on only for Windows. The --dont-define-prefix option already exists for Windows, so the expected reverse option would be --define-prefix.
Comment 1 Dan Nicholson 2013-05-17 12:34:42 UTC
Fixed in 43c1e0e.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.