Permalink
Browse files

FL-692: fix gcc spec file installs

  • Loading branch information...
1 parent 37b578e commit 55eae6f14cfcab7cf66df055ed2aee9dc0b50d40 @danielrobbins danielrobbins committed Sep 9, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 sys-devel/gcc/gcc-4.6.4.ebuild
@@ -272,12 +272,19 @@ create_gcc_env_entry() {
dodir /etc/env.d/gcc
local gcc_envd_base="/etc/env.d/gcc/${CTARGET}-${GCC_CONFIG_VER}"
local gcc_envd_file="${D}${gcc_envd_base}"
+ if [ -z $1 ]; then
+ gcc_specs_file=""
+ else
+ gcc_envd_file="$gcc_envd_file-$1"
+ gcc_specs_file="${LIBPATH}/$1.specs"
+ fi
cat <<-EOF > ${gcc_envd_file}
GCC_PATH="${BINPATH}"
LDPATH="${LIBPATH}:${LIBPATH}/32"
MANPATH="${DATAPATH}/man"
INFOPATH="${DATAPATH}/info"
STDCXX_INCDIR="${STDCXX_INCDIR##*/}"
+ GCC_SPECS="${gcc_specs_file}"
EOF
}

0 comments on commit 55eae6f

Please sign in to comment.