@@ -462,10 +462,10 @@ MAN1PODS = ".$self->wraplist(sort keys %{$self->{MAN1PODS}})."
462462MAN3PODS = " .$self -> wraplist(sort keys %{$self -> {MAN3PODS }})."
463463" ;
464464
465-
465+ my $configdep = $Config { usecperl } ? ' Config_heavy.pl ' : ' Config.pm ' ;
466466 push @m , q{
467467# Where is the Config information that we are using/depend on
468- CONFIGDEP = $(PERL_ARCHLIBDEP)$(DFSEP)Config.pm $(PERL_INCDEP)$(DFSEP)config.h
468+ CONFIGDEP = $(PERL_ARCHLIBDEP)$(DFSEP)} . $configdep . q{ $(PERL_INCDEP)$(DFSEP)config.h
469469} if -e $self -> catfile( $self -> {PERL_INC }, ' config.h' );
470470
471471
@@ -3028,17 +3028,18 @@ sub perldepend {
30283028 my ($self ) = shift ;
30293029 my (@m );
30303030
3031- my $make_config = $self -> cd(' $(PERL_SRC)' , ' $(MAKE) lib/Config.pm' );
3031+ my $configdep = $Config {usecperl } ? ' Config_heavy.pl' : ' Config.pm' ;
3032+ my $make_config = $self -> cd(' $(PERL_SRC)' , ' $(MAKE) lib$(DFSEP)' . $configdep );
30323033
3033- push @m , sprintf <<'MAKE_FRAG' , $make_config if $self -> {PERL_SRC };
3034+ push @m , sprintf <<'MAKE_FRAG' , $configdep , $configdep , $ make_config if $self -> {PERL_SRC };
30343035# Check for unpropogated config.sh changes. Should never happen.
30353036# We do NOT just update config.h because that is not sufficient.
30363037# An out of date config.h is not fatal but complains loudly!
30373038$(PERL_INCDEP)/config.h: $(PERL_SRC)/config.sh
30383039 -$(NOECHO) $(ECHO) "Warning: $(PERL_INC)/config.h out of date with $(PERL_SRC)/config.sh"; $(FALSE)
30393040
3040- $(PERL_ARCHLIB)/Config.pm : $(PERL_SRC)/config.sh
3041- $(NOECHO) $(ECHO) "Warning: $(PERL_ARCHLIB)/Config.pm may be out of date with $(PERL_SRC)/config.sh"
3041+ $(PERL_ARCHLIB)/%s : $(PERL_SRC)/config.sh
3042+ $(NOECHO) $(ECHO) "Warning: $(PERL_ARCHLIB)/%s may be out of date with $(PERL_SRC)/config.sh"
30423043 %s
30433044MAKE_FRAG
30443045
0 commit comments