--- tests/Makefile.in.orig 2014-04-25 02:36:57.000000000 +0800 +++ tests/Makefile.in 2014-04-29 09:42:04.506722750 +0800 @@ -868,7 +868,7 @@ if test -f $$p; then \ $(am__strip_dir) \ echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \ - ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \ + ( cd "$(DESTDIR)$(libdir)" && chmod u+w $$f && $(RANLIB) $$f && chmod u-w $$f) || exit $$?; \ else :; fi; \ done