diff -ru ExtUtils-MakeMaker-6.68.orig/lib/ExtUtils/MakeMaker.pm ExtUtils-MakeMaker-6.68/lib/ExtUtils/MakeMaker.pm
--- ExtUtils-MakeMaker-6.68.orig/lib/ExtUtils/MakeMaker.pm	2013-06-14 18:26:40.000000000 -0400
+++ ExtUtils-MakeMaker-6.68/lib/ExtUtils/MakeMaker.pm	2013-07-06 22:55:48.000000000 -0400
@@ -209,8 +209,8 @@
 
 sub eval_in_subdirs {
     my($self) = @_;
-    use Cwd qw(cwd abs_path);
-    my $pwd = cwd() || die "Can't figure out your cwd!";
+    use Cwd qw(getcwd abs_path);
+    my $pwd = getcwd() || die "Can't figure out your cwd!";
 
     local @INC = map eval {abs_path($_) if -e} || $_, @INC;
     push @INC, '.';     # '.' has to always be at the end of @INC
@@ -363,6 +363,11 @@
         $Recognized_Att_Keys{$item} = 1;
     }
     foreach my $item (@Get_from_Config) {
+	if ($item eq 'lddlflags' && '@PREFIX@' ne '/usr/local') {
+	    $Config{$item} =~ s,-L/usr/local/lib,,;
+	    print "# removed -L/usr/local/lib from '\U$item\E'\n"
+		if ($Verbose >= 2);
+	}
         $Recognized_Att_Keys{uc $item} = $Config{$item};
         print "Attribute '\U$item\E' => '$Config{$item}'\n"
             if ($Verbose >= 2);
diff -ruN ExtUtils-MakeMaker-7.44-orig/lib/ExtUtils/MM_Any.pm ExtUtils-MakeMaker-7.44/lib/ExtUtils/MM_Any.pm
--- ExtUtils-MakeMaker-7.44-orig/lib/ExtUtils/MM_Any.pm	2020-01-14 10:35:54.000000000 -0600
+++ ExtUtils-MakeMaker-7.44/lib/ExtUtils/MM_Any.pm	2020-05-01 04:44:32.000000000 -0500
@@ -1912,7 +1912,7 @@
 sub init_INST {
     my($self) = shift;
 
-    $self->{INST_ARCHLIB} ||= $self->catdir($Curdir,"blib","arch");
+    $self->{INST_ARCHLIB} ||= $self->catdir(File::Spec->rel2abs($Curdir),"blib","arch");
     $self->{INST_BIN}     ||= $self->catdir($Curdir,'blib','bin');
 
     # INST_LIB typically pre-set if building an extension after
diff -ruN ExtUtils-MakeMaker-7.44-orig/t/INST.t ExtUtils-MakeMaker-7.44/t/INST.t
--- ExtUtils-MakeMaker-7.44-orig/t/INST.t	2019-04-27 11:29:41.000000000 -0500
+++ ExtUtils-MakeMaker-7.44/t/INST.t	2020-05-01 05:05:40.000000000 -0500
@@ -94,7 +94,7 @@
 # INST_*
 is( $mm->{INST_ARCHLIB},
     $mm->{PERL_CORE} ? $mm->{PERL_ARCHLIB}
-                     : File::Spec->catdir($Curdir, 'blib', 'arch'),
+                     : File::Spec->catdir(File::Spec->rel2abs($Curdir), 'blib', 'arch'),
                                      'INST_ARCHLIB');
 is( $mm->{INST_BIN},     File::Spec->catdir($Curdir, 'blib', 'bin'),
                                      'INST_BIN' );
@@ -108,7 +108,7 @@
 my $normalize = $^O =~ /android/ ? \&Cwd::realpath : sub {shift};
 is( $normalize->($c_mm->{INST_ARCHLIB}),
     $normalize->($c_mm->{PERL_CORE} ? $c_mm->{PERL_ARCHLIB}
-                       : File::Spec->catdir($Updir, 'blib', 'arch')),
+                       : File::Spec->catdir(File::Spec->rel2abs($Curdir), 'blib', 'arch')),
                                      'CHILD INST_ARCHLIB');
 is( $c_mm->{INST_BIN},     File::Spec->catdir($Updir, 'blib', 'bin'),
                                      'CHILD INST_BIN' );