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 14:31:36 Branch: HEAD Handle: 2004042113313600 Modified files: openpkg-src/gcc gcc.spec Log: add minimum Tru64 support plus optional support (via with_profile option) for building a profiled GCC Summary: Revision Changes Path 1.90 +17 -1 openpkg-src/gcc/gcc.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/gcc/gcc.spec ============================================================================ $ cvs diff -u -r1.89 -r1.90 gcc.spec --- openpkg-src/gcc/gcc.spec 21 Apr 2004 08:17:28 -0000 1.89 +++ openpkg-src/gcc/gcc.spec 21 Apr 2004 12:31:36 -0000 1.90 @@ -50,6 +50,7 @@ %option with_java no %option with_f77 no %option with_optimize yes +%option with_profile no %option with_binutils yes %option with_threads yes %option with_bounds no @@ -173,6 +174,7 @@ CFLAGS="%{l_cflags}" \ ../configure \ --cache-file=./config.cache \ + --srcdir=`pwd`/.. \ --prefix=%{l_prefix} \ --exec-prefix=%{l_prefix} \ --includedir=%{l_prefix}/include/gcc%{V_comp} \ @@ -196,6 +198,9 @@ l_boot_cflags="" l_libcflags="-g" l_libcxxflags="-g" + case "%{l_platform -t}" in + alpha*-tru64* ) l_libcflags="$l_libcflags -ieee" ;; + esac %if "%{with_binutils}" == "yes" # at least GNU as from GNU binutils supports -pipe always l_boot_cflags="$l_boot_cflags -pipe" @@ -216,6 +221,17 @@ l_boot_cflags="$l_boot_cflags -O0" l_libcxxflags="$l_libcxxflags -O0" %endif + maketarget="bootstrap-lean" +%if "%{with_profile}" == "yes" + # GCC >= 3.4 supports a "profiledbootstrap" target to build an + # optimized version of itself through profiling. Because this + # 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 + maketarget="profiledbootstrap" + fi +%endif # build the package %{l_make} %{l_mflags} \ @@ -224,7 +240,7 @@ CFLAGS="${l_cflags}" \ LIBCFLAGS="${l_libcflags}" \ LIBCXXFLAGS="${l_libcxxflags}" \ - bootstrap-lean + $maketarget %install rm -rf $RPM_BUILD_ROOT @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]