From e67f0adf3a44ba562ab84c573c92a2b0fa878718 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sun, 16 Apr 2017 11:42:01 -0700 Subject: [PATCH] enable O2 optimization for lz4 Summary: Closes https://github.com/facebook/rocksdb/pull/2164 Differential Revision: D4897389 Pulled By: yiwu-arbug fbshipit-source-id: fac15374ae7fef1ece70fd2b9018f2451f3c2f7c --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7f95e0b11..db800c511 100644 --- a/Makefile +++ b/Makefile @@ -1480,7 +1480,7 @@ liblz4.a: exit 1; \ fi tar xvzf lz4-$(LZ4_VER).tar.gz - cd lz4-$(LZ4_VER)/lib && make CFLAGS='-fPIC' all + cd lz4-$(LZ4_VER)/lib && make CFLAGS='-fPIC -O2' all cp lz4-$(LZ4_VER)/lib/liblz4.a . # A version of each $(LIBOBJECTS) compiled with -fPIC and a fixed set of static compression libraries