--- Base.pm  (revision 10179)
+++ Base.pm  (local)
@@ -60,6 +60,7 @@ sub import {
 package SVN::_$pkg;
 require DynaLoader;
 bootstrap SVN::_$pkg;
+sub dl_load_flags { 0x01 }
 1;
     ' or die $@;
     };
--- Makefile.PL.in  (revision 10179)
+++ Makefile.PL.in  (local)
@@ -43,8 +43,7 @@ my %config = (
     OBJECT => q/$(O_FILES)/,
     LIBS => [join(' ', $apr_ldflags,
                   (map {$_ = abs_path($_); "-L$_"} @ldpaths),
-                  @ldmodules, '-lsvn_swig_perl-1',
-                  `$swig -perl -ldflags`)],
+                  @ldmodules, '-lsvn_swig_perl-1')],
 );
 
 sub perlish {
@@ -77,18 +76,21 @@ sub MY::postamble {
    my $module_c_files = join (' ',map { "svn_$_.c"} @modules);
    my $module_make_commands = join ('',map {"\t\$(MAKE) -f Makefile.$_\n"} @modules);
 
-   my $flags;
+   my ($flags, $flags_runtime);
    if ($swig_version >= 103020) {
      $flags = '-noruntime -noproxy';
+     $flags_runtime = '-runtime -noproxy';
    } else {
+     # XXX: prehaps deprecated
      $flags = '-c';
    }
    
-   my $swig_command = "$swig $flags -nopm -perl " .
-                      "-I$swig_srcdir " .
-                      "-I$swig_srcdir/perl/libsvn_swig_perl".
-                      " -I$svnlib_srcdir/include" .
-                      $apr_cflags;
+   my ($swig_command, $swig_command_runtime) =
+       map {"$swig $_ -nopm -perl " .
+            "-I$swig_srcdir " .
+            "-I$swig_srcdir/perl/libsvn_swig_perl".
+            " -I$svnlib_srcdir/include" .
+            $apr_cflags} ($flags, $flags_runtime);
 
    my $swig_modules_command = join ('',
                               map {"\nsvn_$_.c : $swig_srcdir/svn_$_.i ".
@@ -123,7 +125,7 @@ modules :: $module_c_files
 $module_make_commands\t\$(NOECHO) \$(TOUCH) \$\@
 
 core.c :: $swig_srcdir/core.i
-\t$swig_command -o core.c $swig_srcdir/core.i
+\t$swig_command_runtime -o core.c $swig_srcdir/core.i
 
 $swig_modules_command
 

