Index: subversion-1.14.3/Makefile.in =================================================================== --- subversion-1.14.3.orig/Makefile.in +++ subversion-1.14.3/Makefile.in @@ -901,7 +901,7 @@ swig-pl: autogen-swig-pl $(SWIG_PL_DIR)/ fi; \ done; \ fi - cd $(SWIG_PL_DIR)/native; $(MAKE) OPTIMIZE="" OTHERLDFLAGS="$(SWIG_LDFLAGS)" + cd $(SWIG_PL_DIR)/native; $(MAKE) check-swig-pl: swig-pl swig-pl-lib cd $(SWIG_PL_DIR)/native; $(MAKE) test Index: subversion-1.14.3/subversion/bindings/swig/perl/native/Makefile.PL.in =================================================================== --- subversion-1.14.3.orig/subversion/bindings/swig/perl/native/Makefile.PL.in +++ subversion-1.14.3/subversion/bindings/swig/perl/native/Makefile.PL.in @@ -85,7 +85,7 @@ my %config = ( " -I$svnlib_builddir", " -I$swig_srcdir -g"), OBJECT => q/$(O_FILES)/, - LIBS => [join(' ', $apr_ldflags, + LIBS => [join(' ', $apr_ldflags, '-lpthread -lapr-1 -lperl', (map {"-L$_"} @ldpaths), @ldmodules, '-lsvn_swig_perl-1', `$swig -perl -ldflags`)],