3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/pkgconfig/setup-hook.sh
2014-08-09 12:47:05 +02:00

11 lines
244 B
Bash

addPkgConfigPath () {
addToSearchPath PKG_CONFIG_PATH $1/lib/pkgconfig
addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig
}
if test -n "$crossConfig"; then
crossEnvHooks+=(addPkgConfigPath)
else
envHooks+=(addPkgConfigPath)
fi