Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • MakeMaker is just following whatever is in your which is whatever you decided the optimization level should be when you configured and installed Perl. If you took the default,
    then it comes from whatever configuration hints are available for your OS. Most these days
    use -O2 or -O3. Some, like OS X, choose -Os by default. Others (SCO, IRIX, AU/X) use -O to
    play it safe.

    And if you installed Perl from a vendor (Debian, Redhat, Sun, etc...) they could have changed the default, too.

    Here's my stock perl delivered from Apple.
    $ perl -MConfig -wle 'print $Config{optimize}'

    The 5.8.0 I compiled myself and overrode the default optimization choice:
    $ perl5.8.0 -MConfig -wle 'print $Config{optimize}'
    -O3 -g

    Here's the bleadperl I just compiled with the default config:
    $ DYLD_LIBRARY_PATH=. ./perl -Ilib -MConfig -wle 'print $Config{optimize}'

    Finally, the stock Debian perl:
    $ perl -MConfig -wle 'print $Config{optimize}'

    If you want to override this when building modules, just do this:

            perl Makefile.PL OPTIMIZE='-Os -g'

    and then make normally.