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
This commit is contained in:
Jay Lee 2017-04-16 11:42:01 -07:00 committed by Facebook Github Bot
parent bc3973259c
commit e67f0adf3a

View file

@ -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