Skip to content

Commit

Permalink
Merge pull request #6311 from liewegas/wip-rocksdb
Browse files Browse the repository at this point in the history
rocksdb: build with PORTABLE=1

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Oct 19, 2015
2 parents d4a4e44 + b22690e commit d8a3208
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/os/Makefile.am
Expand Up @@ -88,8 +88,9 @@ noinst_HEADERS += \
if WITH_SLIBROCKSDB
# build rocksdb with its own makefile
# for some stupid reason this needs -fPIC...
# PORTABLE=1 fixes the aarch64 build (-march=native doesn't work there)
rocksdb/librocksdb.a:
cd rocksdb && EXTRA_CXXFLAGS=-fPIC make -j$(shell nproc) static_lib
cd rocksdb && EXTRA_CXXFLAGS=-fPIC PORTABLE=1 make -j$(shell nproc) static_lib
libos_a_CXXFLAGS += -I rocksdb/include -fPIC
libos_a_SOURCES += os/RocksDBStore.cc
libos_a_LIBADD += rocksdb/librocksdb.a
Expand Down

0 comments on commit d8a3208

Please sign in to comment.