Added extra ranlib on libary files after being copied to the lib tree for OSX only.
[blender-staging.git] / intern / ghost / Makefile
index 5c78bea192c3b48b7a0c937ac42626b82f184f54..bfcd2d2f12a3f431a617ae07e4e3d0fc3cceca3a 100644 (file)
@@ -48,5 +48,9 @@ install: all debug
        @[ -d $(NAN_GHOST)/lib/debug ] || mkdir $(NAN_GHOST)/lib/debug
        cp -f $(DIR)/libghost.a $(NAN_GHOST)/lib/
        cp -f $(DIR)/debug/libghost.a $(NAN_GHOST)/lib/debug/
+ifeq ($(OS),darwin)
+       ranlib $(NAN_GHOST)/lib/libghost.a
+       ranlib $(NAN_GHOST)/lib/debug/libghost.a
+endif
        cp -f *.h $(NAN_GHOST)/include/