disable portable on MacOS
ENABLE_FEATURES ?= default
+# Disable portable on MacOS to sidestep the compiler bug in clang 4.9
+ifeq ($(shell uname -s),Darwin)
+ROCKSDB_SYS_PORTABLE=0
+endif
+
# Build portable binary by default unless disable explicitly
ifneq ($(ROCKSDB_SYS_PORTABLE),0)
ENABLE_FEATURES += portable
