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