Our build system uses pkg-config to build the software, but the linking can take very long (sometimes up to 20 minutes). We identified pkg-config as the guilty tool.
So, is there a faster alternative to pkg-config? Or, are there some settings to use to speed up the linking?
PS I am not sure if this question is relevant for this question.

vmstat 1and I see that both high disk access and high CPU usage. The code is large, but I don't think it should take 20 minutes to link an application. It is not that large. And I see it happening randomly. – BЈовић Mar 27 '12 at 11:09