64-bit support: /lib -> /lib{64,}
authorlace <>
Sat, 22 Dec 2007 17:35:16 +0000 (17:35 +0000)
committerlace <>
Sat, 22 Dec 2007 17:35:16 +0000 (17:35 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 9729af5..9871576 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -84,6 +84,7 @@ for family in $HOME;do
                _bash_profile_addpath PATH            "$arch/bin"
                _bash_profile_addpath -s JAVA_HOME    "$arch/java"
                [ $EUID -eq 0 ] && _bash_profile_addpath PATH "$arch/sbin"
+               _bash_profile_addpath LD_LIBRARY_PATH "$arch/lib64"
                _bash_profile_addpath LD_LIBRARY_PATH "$arch/lib"
                _bash_profile_addpath MANPATH         "$arch/man"
                done
@@ -97,9 +98,9 @@ _bash_profile_addpath    -s ANT_HOME "/usr/local/ant"
 # /share/perl for Debian
 # /lib/perl for Debian
 # /lib/perl5 for Fedora Core
-mkdir -p $HOME/lib/perl5       # otherwise CPAN will install to "$HOME/lib/site_perl" etc.
+mkdir -p $HOME/lib{64,}/perl5  # otherwise CPAN will install to "$HOME/lib{64,}/site_perl" etc.
 _perlpatt="$(perl -MConfig -e 'print "{,/".$Config{$_}."}" for qw(version archname);')"
-for _perldir in $(eval "echo {/usr,$HOME}{/lib{,64}/perl{,5},/share/perl}{,/site_perl}$_perlpatt");do
+for _perldir in $(eval "echo {/usr,$HOME}{/lib{64,}/perl{,5},/share/perl}{,/site_perl}$_perlpatt");do
        # $PERL5LIB overrides $PERLLIB and it is being used by: /etc/profile.d/atrpms.*
        _bash_profile_addpath -f PERL5LIB "$_perldir"
        done