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