Ticket #830: defaults.pm.patch

File defaults.pm.patch, 1.0 KB (added by gerd, 5 years ago)

generated with "diff -u config/init/defaults.pm config/init/defaults.pm.new

  • config/init/defaults.pm

    old new  
    7272    # to their 'use English' names as documented in 'perlvar'.) 
    7373    $conf->data->set_p5( OSNAME => $^O ); 
    7474 
     75    my $ccdlflags = $Config{ccdlflags}; 
     76    $ccdlflags =~ s/\s*-Wl,-rpath,\S*//g if $conf->options->get('disable-rpath'); 
     77 
    7578    # We need a Glossary somewhere! 
    7679    $conf->data->set( 
    7780        debugging => $conf->options->get('debugging') ? 1 : 0, 
     
    112115        # Linker Flags to have this binary work with the shared and dynamically 
    113116        # loadable libraries we're building.  On HP-UX, for example, we need to 
    114117        # allow dynamic libraries to access the binary's symbols 
    115         link_dynamic => $Config{ccdlflags},    # e.g. -Wl,-E on HP-UX 
     118        link_dynamic => $ccdlflags,    # e.g. -Wl,-E on HP-UX 
    116119 
    117120        # ld: Tool used to build shared libraries and dynamically loadable 
    118121        # modules. Often $cc on Unix-ish systems, but apparently sometimes