Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 18 years ago
parent
commit
bef32fba3d
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      package/base/gcc/gcc.conf

+ 11
- 4
package/base/gcc/gcc.conf

@ -264,10 +264,17 @@ custmain() {
# Regenerate the file with -dumpspecs.
#
cd $builddir/inst_bin
for x in gcc ${pkg_gcc_target}-gcc ; do
[ -f "$x" -a "${pkg_gcc_version:0:1}" -ge "4" ] && \
./$x -dumpspecs > $root/$prefix/lib/$gcc_lib_dir/specs
done
if [ "${pkg_gcc_version:0:1}" -ge "4" ]; then
if [ "$ROCKCFG_CROSSBUILD" == 1 ]; then
$root/ROCK/tools.cross/crosscc/${pkg_gcc_target}-gcc -dumpspecs > \
$root/${prefix}/lib/${gcc_lib_dir}/specs
else
for x in gcc ${pkg_gcc_target}-gcc ; do
[ -f "${x}" ] && ./${x} -dumpspecs > \
$root/${prefix}/lib/${gcc_lib_dir}/specs
done
fi
fi
# Rename and install binaries
#

Loading…
Cancel
Save