Please require 'prefix' variable in *.pc

Tollef Fog Heen tfheen at err.no
Tue Dec 20 13:54:47 UTC 2022


]] Felix Lechner 

Hi,

> The 'prefix' variable, while often present in pkg-config files, is not
> actually required. [1] Some projects therefore try to omit it [2]
> which sometimes does not work for everyone. [3]
> 
> Would the maintainers accept a patch that generates a warning whenever
> the variable is not present?

No, I don't think so.  Having prefix defined is just a common convention
for a variable, not a requirement.  pkg-config tries reasonably hard to
not dictate what variables people use.

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


More information about the pkg-config mailing list