--- otherlibs/labltk/lib/Makefile.orig	2012-09-30 14:31:27.000000000 +0200
+++ otherlibs/labltk/lib/Makefile	2014-04-01 07:22:17.000000000 +0200
@@ -99,7 +99,7 @@
 
 installopt:
 	@if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
+	$(RANLIB) $(LIBNAME).$(A)
 	cp $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
-	cd $(INSTALLDIR); $(RANLIB) $(LIBNAME).$(A)
 	chmod 644 $(INSTALLDIR)/$(LIBNAME).cmxa
 	chmod 644 $(INSTALLDIR)/$(LIBNAME).$(A)
