]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FreeBSD/src/kv/Makefile.am: Fix NPROC and add compilerflags
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 24 Mar 2016 12:05:18 +0000 (13:05 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 10 May 2016 21:41:17 +0000 (23:41 +0200)
 - Silence the Clang compiler on a warning
 - augment the getting of FreeBSD number of CPUs
NPROC = nproc needs to be conditional as well since
it will otherwise be executed anyways.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/kv/Makefile.am

index b8761714491f0d086d296b7000a4a718c93d9b89..95a189576afe6326eba2c20cb774712bc21f2c2b 100644 (file)
@@ -16,12 +16,17 @@ 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)
-NPROC = nproc
+
+ROCKSDBCXX_FLAGS = "-fPIC"
 if FREEBSD
-        NPROC = sysctl -n hw.ncpu
+NPROC = sysctl -n hw.ncpu
+ROCKSDBCXX_FLAGS += "-Wmismatched-tags"
+else
+NPROC = nproc
 endif
+
 rocksdb/librocksdb.a:
-       cd rocksdb && CC="${CC}" CXX="${CXX}" EXTRA_CXXFLAGS=-fPIC PORTABLE=1 $(MAKE) -j$(shell ${NPROC}) static_lib
+       cd rocksdb && CC="${CC}" CXX="${CXX}" EXTRA_CXXFLAGS="${ROCKSDBCXX_FLAGS}" PORTABLE=1 ${MAKE} -j$(shell ${NPROC}) static_lib
 libkv_a_CXXFLAGS += -I rocksdb/include -fPIC
 libkv_a_SOURCES += kv/RocksDBStore.cc
 libkv_a_LIBADD += rocksdb/librocksdb.a