b3c6b36 Store distribution's linker and compiler flags to more Config's options

Authored and Committed by ppisar 8 years ago
1 file changed. 15 lines added. 4 lines removed.
    Store distribution's linker and compiler flags to more Config's options
    
    We want all programs and libraries produced by perl.spec and other
    Perl packages to respect distribution's CFLAGS and LDFLAGS.
    
    This change ensures it. Especially for /usr/bin/perl as well as
    non-installed miniperl. The only drawback is /usr/bin/perl gets the
    flags twice.
    
    We could poke upstream to fix ExtUtils::MakeMaker and
    ExtUtils::CBuilder to respect ldflags what does not happen now. They
    use lddlflags only. But we cannot patch them not to diverge from the
    world.
    
    Also we disable optimize because optimize is not used everywhere.
    
    This change makes other Perl packages' Makefile.PL's OPTIMIZE argument
    redundant. Please note the Build.PL's optimize argument is completly
    ignored by Build.PL.
    
        
file modified
+15 -4