Added extra ranlib on libary files after being copied to the lib tree for OSX only.
[blender.git] / intern / iksolver / Makefile
index 8cdb81ca780a245f3d1aa74d1645a8964fb3ee32..512de299fe79c9b7cb491d84fceec6b09cd3ff3e 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_IKSOLVER)/lib/debug ] || mkdir $(NAN_IKSOLVER)/lib/debug
        cp -f $(DIR)/libiksolver.a $(NAN_IKSOLVER)/lib/
        cp -f $(DIR)/debug/libiksolver.a $(NAN_IKSOLVER)/lib/debug/
        @[ -d $(NAN_IKSOLVER)/lib/debug ] || mkdir $(NAN_IKSOLVER)/lib/debug
        cp -f $(DIR)/libiksolver.a $(NAN_IKSOLVER)/lib/
        cp -f $(DIR)/debug/libiksolver.a $(NAN_IKSOLVER)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_IKSOLVER)/lib/libiksolver.a
+       ranlib $(NAN_IKSOLVER)/lib/debug/libiksolver.a
+endif
        cp -f extern/*.h $(NAN_IKSOLVER)/include/
 
        cp -f extern/*.h $(NAN_IKSOLVER)/include/