现在pkg-config只看/usr/lib/pkgconfig. 我可以通过导出PKG_CONFIG_PATH环境变量来为用户调整它,但我又一次忘记为 root 做这件事,浪费时间想知道为什么我的插件没有正确安装(使用的 makefile pkg-config)。那么如何在系统范围内设置它,以便它始终同时查看/usr/lib和/usr/local/lib?
pkg-config
/usr/lib/pkgconfig
PKG_CONFIG_PATH
/usr/lib
/usr/local/lib
configuration environment-variables
configuration ×1
environment-variables ×1