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