Skip to content

Commit

Permalink
Fix examples/Makefile jemalloc error
Browse files Browse the repository at this point in the history
Summary: compile and link with jemalloc in examples binaries

Test Plan:
cd examples
make -j64

Reviewers: andrewkr, sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba, yoshinorim

Differential Revision: https://reviews.facebook.net/D59457
  • Loading branch information
IslamAbdelRahman committed Jun 14, 2016
1 parent e3b1e3d commit 886af59
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
include ../make_config.mk

ifndef DISABLE_JEMALLOC
ifdef JEMALLOC
PLATFORM_CXXFLAGS += "-DROCKSDB_JEMALLOC"
endif
EXEC_LDFLAGS := $(JEMALLOC_LIB) $(EXEC_LDFLAGS) -lpthread
PLATFORM_CXXFLAGS += $(JEMALLOC_INCLUDE)
endif

.PHONY: clean librocksdb

all: simple_example column_families_example compact_files_example c_simple_example optimistic_transaction_example transaction_example
Expand Down

0 comments on commit 886af59

Please sign in to comment.