Perl 5.8.4

"Jerry D. Hedden" <[email protected]> Wed, 26 May 2004 16:13:32 -0400
Newsgroups gmane.os.cygwin.perl
Message-ID <[email protected]>
After quite a bit of work, I found the optimal settings (for me at
least) for building Perl 5.8.4 under Cgywin:

### CUT HERE ###

tar -xzf perl-5.8.4.tar.gz
cd perl-5.8.4/
mkdir log

./Configure -de -Dprefix=/usr/local \
                [email protected] \
                [email protected] \
                -Dldflags=-s \
                -Dccdlflags=-s \
                -Dlddlflags=-s \
                -Dusemallocwrap \
                -Duse64bitint \
                -Dusethreads \
                -A define:optimize='-O2 -pipe -frename-registers
-fomit-frame-pointer -march=pentium3 -mfpmath=sse -mmmx -msse' \
                -Dman3ext=3pm \
                -A define:ld=/usr/local/bin/ld2 \
                -D noextensions=IPC/SysV \
        2>log/conf.err | tee log/conf.log

make 2>log/make.err | tee log/make.log
./perl -V -Ilib  > log/ver.log

export PERLIO=perlio
make test 2>log/test.err | tee log/test.log

make install-strip 2>log/inst.err | tee log/inst.log

### CUT HERE ###

NOTES:
1.  This installs under /usr/local so that it doesn't conflict with
the Cygwin installed version (if you should need it).
2.  The above assumes a PIII CPU.  Modify the 'optimize' options as
needed (see 'info gcc').
3.  The IPC/SysV module is broken under Cygwin, so it is not built.

Modify your PATH variable so that /usr/local/bin comes before
/usr/bin and /bin.

If you've already configured CPAN, you can copy over your old config:
    cp /usr/local/lib/perl5/5.8.4/CPAN/Config.pm \
       /usr/local/lib/perl5/5.8.4/CPAN/
Then run 'cpan' to get any module you need.  Use the CPAN's 'r'
command to check for modules to upgrade.

If you remove the Cygwin setup.exe installed version of Perl, you'll
need to clean up remnants left over from CPAN modules:
    rm -fr /usr/lib/perl5/
    rm -f /usr/bin/lwp-* \
          /usr/bin/instmodsh \
          /usr/bin/*code-* \
          /usr/bin/dbi*
Also, add a link so that existing scripts keep working:
  ln -s /usr/local/bin/perl.exe /usr/bin/perl

=====
Jerry D. Hedden
<< If you're not having fun, then you're not doing it right! >>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/ndFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/cygwin-perl/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/