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 16:01:50
  Branch: HEAD                             Handle: 2004042115014900

  Modified files:
    openpkg-src/gcc35       gcc35.spec

  Log:
    merge Tru64 support and profiled bootstrapping support into GCC 3.5
    package

  Summary:
    Revision    Changes     Path
    1.3         +21 -1      openpkg-src/gcc35/gcc35.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/gcc35/gcc35.spec
  ============================================================================
  $ cvs diff -u -r1.2 -r1.3 gcc35.spec
  --- openpkg-src/gcc35/gcc35.spec      21 Apr 2004 08:26:01 -0000      1.2
  +++ openpkg-src/gcc35/gcc35.spec      21 Apr 2004 14:01:49 -0000      1.3
  @@ -47,6 +47,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_gcc       no
  @@ -143,6 +144,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} \
  @@ -162,10 +164,17 @@
           `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* ) 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
       l_boot_cflags="$l_boot_cflags -pipe"
  @@ -186,6 +195,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_ccisgcc" = .yes ]; then
  +        maketarget="profiledbootstrap"
  +    fi
  +%endif
   
       #   build the package
       %{l_make} %{l_mflags} \
  @@ -194,7 +214,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]

Reply via email to