--- /usr/portage/sys-devel/gcc/gcc-3.4.0-r6.ebuild 2004-06-02 14:14:23.000000000 +0300 +++ gcc-3.4.0-r6.ebuild 2004-06-03 00:05:43.514924464 +0300 @@ -53,6 +53,14 @@ export GCJFLAGS="${CFLAGS}" } +# Some arch misplace their libraries /lib <-> /lib64 +has_lib64() { +use amd64 && return 0 +use ppc64 && return 0 +return 1 +} + + # Theoretical cross compiler support [ ! -n "${CCHOST}" ] && export CCHOST="${CHOST}" @@ -850,7 +859,7 @@ exeinto /sbin doexe ${FILESDIR}/fix_libtool_files.sh - if [ "${ARCH}" = "amd64" ] + if has_lib64 then # GCC 3.4 tries to place libgcc_s in lib64, where it will never be # found. When multilib is enabled, it also places the 32bit version in