OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 21-Apr-2004 15:54:25 Branch: HEAD Handle: 2004042114542500 Modified files: openpkg-src/gcc gcc.spec Log: check for gcc in advance; use this for the Tru64 hack and reuse it for the 'profiledbootstrap' option implementation Summary: Revision Changes Path 1.91 +6 -2 openpkg-src/gcc/gcc.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/gcc/gcc.spec ============================================================================ $ cvs diff -u -r1.90 -r1.91 gcc.spec --- openpkg-src/gcc/gcc.spec 21 Apr 2004 12:31:36 -0000 1.90 +++ openpkg-src/gcc/gcc.spec 21 Apr 2004 13:54:25 -0000 1.91 @@ -194,12 +194,16 @@ `find . -name Makefile -type f -print` # determine build flags + l_ccisgcc=no + if [ ".`(%{l_cc} -v; %{l_cc} --version) </dev/null 2>/dev/null | grep 'gcc'`" != . ]; then + l_ccisgcc=yes + fi l_cflags="" l_boot_cflags="" l_libcflags="-g" l_libcxxflags="-g" case "%{l_platform -t}" in - alpha*-tru64* ) l_libcflags="$l_libcflags -ieee" ;; + alpha*-tru64* ) if [ ".$l_ccisgcc" = .no ]; then l_libcflags="$l_libcflags -ieee"; fi ;; esac %if "%{with_binutils}" == "yes" # at least GNU as from GNU binutils supports -pipe always @@ -228,7 +232,7 @@ # requires a (bootstrapping) C compiler with 64-bit arithmetic, # the whole approach is currently supported only if already # building with GCC as the bootstrapping C compiler. - if [ ".`(%{l_cc} -v; %{l_cc} --version) </dev/null 2>/dev/null | grep 'gcc'`" != . ]; then + if [ ".$l_ccisgcc" = .yes ]; then maketarget="profiledbootstrap" fi %endif @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]