OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   31-Oct-2007 23:59:50
  Branch: HEAD                             Handle: 2007103122594900

  Modified files:
    openpkg-src/gcc         gcc.spec

  Log:
    force PIC on certain platforms (logic taken from OpenSSL embedded in
    OpenPKG bootstrap) to get a relocatable libstdc++ (fixing aqbanking on
    amd64)

  Summary:
    Revision    Changes     Path
    1.151       +8  -1      openpkg-src/gcc/gcc.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/gcc/gcc.spec
  ============================================================================
  $ cvs diff -u -r1.150 -r1.151 gcc.spec
  --- openpkg-src/gcc/gcc.spec  16 Oct 2007 19:06:38 -0000      1.150
  +++ openpkg-src/gcc/gcc.spec  31 Oct 2007 22:59:49 -0000      1.151
  @@ -37,7 +37,7 @@
   Group:        Compiler
   License:      GPL
   Version:      %{V_full}
  -Release:      20071016
  +Release:      20071031
   
   #   package options
   %option       with_binutils  yes
  @@ -190,6 +190,7 @@
           l_ccisgcc=yes
       fi
       l_cflags=""
  +    l_cxxflags=""
       l_boot_cflags=""
       l_libcflags="-g"
       l_libcxxflags="-g"
  @@ -225,12 +226,18 @@
           maketarget="profiledbootstrap"
       fi
   %endif
  +    case "%{l_platform -t}" in
  +        amd64-*          ) l_cflags="$l_cflags -fPIC"; 
l_cxxflags="$l_cxxflags -fPIC" ;;
  +        ia64-*           ) l_cflags="$l_cflags -fPIC"; 
l_cxxflags="$l_cxxflags -fPIC" ;;
  +        sparc64-freebsd* ) l_cflags="$l_cflags -fPIC"; 
l_cxxflags="$l_cxxflags -fPIC" ;;
  +    esac
   
       #   build the package
       %{l_make} %{l_mflags} \
           MAKE="%{l_make} %{l_mflags}" \
           BOOT_CFLAGS="${l_boot_cflags}" \
           CFLAGS="${l_cflags}" \
  +        CXXFLAGS="${l_cxxflags}" \
           LIBCFLAGS="${l_libcflags}" \
           LIBCXXFLAGS="${l_libcxxflags}" \
           $maketarget
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to