debian, rpm: build rocksdb statically if we can

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2014-07-29 15:38:18 -07:00
parent a497a3b42e
commit 213e0acf7e
2 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,7 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
--with-rest-bench \
--with-debug \
--enable-cephfs-java \
--with-librocksdb-static=check \
$MY_CONF_OPT \
%{?_with_ocf} \
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"

3
debian/rules vendored
View File

@ -24,6 +24,9 @@ extraopts += --with-ocf --with-rest-bench --with-nss
extraopts += --with-debug
extraopts += --enable-cephfs-java
# rocksdb is not packaged by anyone. build it if we can.
extraopts += --with-librocksdb-static=check
ifeq ($(DEB_HOST_ARCH), armel)
# armel supports ARMv4t or above instructions sets.
# libatomic-ops is only usable with Ceph for ARMv6 or above.