Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 72557
Collapse All | Expand All

(-)gcc-config.orig (-1 / +14 lines)
Lines 459-465 fi Link Here
459
459
460
CC_COMP_NO_SPECS=$(echo ${CC_COMP} | awk -F- '{ print $1"-"$2"-"$3"-"$4"-"$5 }')
460
CC_COMP_NO_SPECS=$(echo ${CC_COMP} | awk -F- '{ print $1"-"$2"-"$3"-"$4"-"$5 }')
461
461
462
if [ ! -d "/usr/lib/gcc-lib/${CC_COMP_NO_SPECS%-*}/${CC_COMP_NO_SPECS##*-}" -o \
462
# get gcc major/minor version
463
GCC_MAJOR=$(echo ${CC_COMP_NO_SPECS} | awk -F- '{ print $5 }' | awk -F. '{ print $1 }')
464
GCC_MINOR=$(echo ${CC_COMP_NO_SPECS} | awk -F- '{ print $5 }' | awk -F. '{ print $2 }')
465
466
# since gcc 3.4 gcc libraries are installed in /usr/lib/gcc 
467
# instead of /usr/lib/gcc-lib
468
if [ $GCC_MAJOR -eq 3 ] && [ $GCC_MINOR -ge 4 ];
469
then
470
	GCC_LIB_DIR="gcc"
471
else
472
	GCC_LIB_DIR="gcc-lib"
473
fi
474
475
if [ ! -d "/usr/lib/${GCC_LIB_DIR}/${CC_COMP_NO_SPECS%-*}/${CC_COMP_NO_SPECS##*-}" -o \
463
     ! -f "/etc/env.d/gcc/${CC_COMP}" ]
476
     ! -f "/etc/env.d/gcc/${CC_COMP}" ]
464
then
477
then
465
	eerror "$0: Profile does not exist or invalid setting for /etc/env.d/gcc/${CC_COMP}"
478
	eerror "$0: Profile does not exist or invalid setting for /etc/env.d/gcc/${CC_COMP}"

Return to bug 72557