How to retrieve prefix using pkg-config?

Tollef Fog Heen tfheen at err.no
Sat Apr 4 05:00:04 UTC 2020


]] Jeffrey Walton 

> The code above is producing an error, "Unknown option --prefix". The
> pkg-config(1) man page does not say how to extract the prefix to use.

The prefix is just a variable, so «pkg-config --variable=prefix
libgpg-error» should do what you want.

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


More information about the pkg-config mailing list