Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
705b33f7a8
1 changed files with 10 additions and 11 deletions
  1. +10
    -11
      package/base/gcc/gcc.conf

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

@ -260,6 +260,15 @@ custmain() {
hook_eval postmake
# GCC 4 does not install a specs file and removes old ones.
# 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
# Rename and install binaries
#
cd $builddir/inst_bin ; mkdir -p $root/$prefix/bin
@ -271,16 +280,6 @@ custmain() {
done
done
# GCC 4 does not install a specs file and removes old ones.
# 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
# gcc2 does not contain an own c++filt ... - so use the binutils one
#
if [ "$xpkg" = gcc2 ] ; then
@ -536,7 +535,7 @@ gcc_cross() {
# GCC 4 does not install a specs file and removes old ones.
# Regenerate the file with -dumpspecs.
#
[ "$stagelevel" -eq 0 -a "${pkg_gcc_version:0:1}" -eq "4" ] && \
[ "${pkg_gcc_version:0:1}" -ge "4" ] && \
$root/$prefix/crosscc/${arch_target}-gcc -dumpspecs > \
$root/$prefix/lib/${gcc_lib_dir}/specs

Loading…
Cancel
Save