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:   15-Nov-2004 13:42:35
  Branch: HEAD                             Handle: 2004111512423300

  Modified files:
    openpkg-src/perl        perl.spec

  Log:
    miniperl on amd64 segfaults when compiled with gcc -O2

  Summary:
    Revision    Changes     Path
    1.94        +6  -2      openpkg-src/perl/perl.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/perl/perl.spec
  ============================================================================
  $ cvs diff -u -r1.93 -r1.94 perl.spec
  --- openpkg-src/perl/perl.spec        8 Nov 2004 20:59:17 -0000       1.93
  +++ openpkg-src/perl/perl.spec        15 Nov 2004 12:42:33 -0000      1.94
  @@ -34,7 +34,7 @@
   Group:        Language
   License:      GPL/Artistic
   Version:      5.8.5
  -Release:      20041108
  +Release:      20041115
   
   #   list of sources
   Source0:      ftp://ftp.cpan.org/pub/CPAN/src/perl-%{version}.tar.gz
  @@ -75,6 +75,10 @@
       %{l_shtool} subst \
           -e 's; */usr/local/lib;;' \
           hints/freebsd.sh hints/netbsd.sh
  +    case "%{l_platform -t}" in
  +        amd64-* ) optimize="%{l_cflags}"    ;;
  +        *-*     ) optimize="%{l_cflags -O}" ;;
  +    esac
       ./Configure \
           -d -e -s \
           -Dprefix=%{l_prefix} \
  @@ -83,7 +87,7 @@
           -Dinstallstyle="lib/perl5" \
           -Dman1dir=%{l_prefix}/man/man1 \
           -Dman3dir=%{l_prefix}/man/man3 \
  -        -Dcc="%{l_cc}" -Doptimize="%{l_cflags -O}" \
  +        -Dcc="%{l_cc}" -Doptimize="$optimize" \
           -Dlocincpth="%{l_prefix}/include" \
           -Dloclibpth="%{l_prefix}/lib" \
           -Dldflags="%{l_ldflags}" \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to