Various ways ...
You could add that to root's
~/.bashrc or ~/.bash_login
You could add it to
/etc/rc.d/rc.local
You could (which is what I'd do) create
/etc/profile.d/pkg_conf.sh
Code:
#!/bin/bash
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
chmod u+x /etc/profile.d/pkg_conf.sh
Why this last technique, even though it appears to be more
work than necessary? It saves me the hassles of touching
other scripts after an upgrade, and the next one, and the
next one .... :}
Cheers,
Tink