From: Yueh-Hsuan Chiang Date: Tue, 17 Nov 2015 21:50:54 +0000 (-0800) Subject: Fix Java Makefile X-Git-Tag: rocksdb-4.2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2ebb6745a12be945ea62b0b76a40b8c4360c4aa;p=rocksdb.git Fix Java Makefile Summary: In case rocksdb java package is built using make rocksdbjavastaticrelease, then only those rocksdb binary built under the virtual environments is release build. This patch fix this issue. Test Plan: PORTABLE=1 V=2 make rocksdbjavastaticrelease -j32 and make sure -O2 and -NDEBUG is included when compiling all source files. Reviewers: sdong, anthony, IslamAbdelRahman, rven, kradhakrishnan, igor Reviewed By: igor Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D50895 --- diff --git a/Makefile b/Makefile index bbb59891..cf32abc7 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,14 @@ ifeq ($(MAKECMDGOALS),rocksdbjavastatic) DEBUG_LEVEL=0 endif +ifeq ($(MAKECMDGOALS),rocksdbjavastaticrelease) + DEBUG_LEVEL=0 +endif + +ifeq ($(MAKECMDGOALS),rocksdbjavastaticpublish) + DEBUG_LEVEL=0 +endif + # compile with -O2 if debug level is not 2 ifneq ($(DEBUG_LEVEL), 2) OPT += -O2 -fno-omit-frame-pointer