Here is a patch to correct the problems on Tru64.
This corrects:
* install-sh not found
To resolve the install-sh problem, I've added --srcdir to the configure
options, that way the path to the install-sh script is an absolute path.
* compile error:
cc: Error: /tmp/openpkg/RPM/TMP/gcc-3.4-20040414/libiberty/floatformat.c,
line 319: In this statement, the libraries on this platform do not yet
support compile-time evaluation of the constant expression "0.0/0.0".
(constfoldns)
dto = NAN;
--------------^
make[1]: *** [floatformat.o] Error 1
make: *** [all-libiberty] Error 2
The Compaq C compiler needs the option -ieee to compile this source. So the
spec checks if the cc command is /bin/cc and sets l_libcflags to -ieee if it
is. (note: the cc command is also present in /usr/bin/cc, so maybe this
needs checking too?!)
* with_binutils
GNU as/ld aren't supported on Tru64. Therefor skip the --with-gnu-ld/as /
-pipe options even if with_binutils=yes is set.
Side note: gcc34 supports a profiledbootstrap. Has this been tried yet?!
*** gcc34-orig.spec Mon Apr 19 10:56:13 2004
--- gcc34.spec.new Mon Apr 19 11:11:44 2004
***************
*** 88,93 ****
--- 88,94 ----
gcc/configure
%build
+ l_srcdir=$(pwd)
# create build sub-directory
mkdir obj
cd obj
***************
*** 95,102 ****
# determine ld(1) and as(1) usage
l_with_gnu_ld_as=""
%if "%{with_binutils}" == "yes"
! l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-ld
--with-ld=%{l_prefix}/bin/ld"
! l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-as
--with-as=%{l_prefix}/bin/as"
%else
case "%{l_platform -t}" in
*-linux* | *-freebsd* )
--- 96,110 ----
# determine ld(1) and as(1) usage
l_with_gnu_ld_as=""
%if "%{with_binutils}" == "yes"
! case "%{l_platform -t}" in
! alpha*-tru64* )
! echo "with_binutils option not supported on this platform."
! ;;
! * )
! l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-ld
--with-ld=%{l_prefix}/bin/ld"
! l_with_gnu_ld_as="${l_with_gnu_ld_as} --with-gnu-as
--with-as=%{l_prefix}/bin/as"
! ;;
! esac
%else
case "%{l_platform -t}" in
*-linux* | *-freebsd* )
***************
*** 139,144 ****
--- 147,153 ----
--disable-maintainer-mode \
--disable-shared \
--disable-nls \
+ --srcdir="${l_srcdir}" \
${l_with_gnu_ld_as}
# explicitly redirect remaining gcc library directories
***************
*** 150,160 ****
l_cflags=""
l_boot_cflags=""
l_libcflags="-g"
! l_libcxxflags="-g"
%if "%{with_binutils}" == "yes"
# at least GNU as from GNU binutils supports -pipe always
! l_boot_cflags="$l_boot_cflags -pipe"
! l_libcxxflags="$l_libcxxflags -pipe"
%endif
%if "%{with_optimize}" == "yes"
# conservatively optimize the generated program code
--- 159,183 ----
l_cflags=""
l_boot_cflags=""
l_libcflags="-g"
! case "%{l_platform -t}" in
! alpha*-tru64* )
! if test $(which cc) = "/bin/cc"
! then
! l_libcflags="$l_libcflags -ieee"
! fi
! ;;
! esac
%if "%{with_binutils}" == "yes"
# at least GNU as from GNU binutils supports -pipe always
! case "%{l_platform -t}" in
! alpha*-tru64* )
! echo "with_binutils option not supported on this platform."
! ;;
! * )
! l_boot_cflags="$l_boot_cflags -pipe"
! l_libcxxflags="$l_libcxxflags -pipe"
! ;;
! esac
%endif
%if "%{with_optimize}" == "yes"
# conservatively optimize the generated program code
============================================================================
===
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List [EMAIL PROTECTED]