2016-03-24 11:47:34 +00:00
|
|
|
#!/bin/sh -xve
|
|
|
|
NPROC=`sysctl -n hw.ncpu`
|
|
|
|
|
|
|
|
if [ x"$1"x = x"--deps"x ]; then
|
|
|
|
# we need bash first otherwise almost nothing will work
|
|
|
|
sudo pkg install bash
|
|
|
|
if [ ! -L /bin/bash ]; then
|
|
|
|
echo linking /bin/bash to /usr/local/bin/bash
|
|
|
|
ln -s /usr/local/bin/bash /bin/bash
|
|
|
|
fi
|
|
|
|
sudo ./install-deps.sh
|
|
|
|
fi
|
2016-09-15 06:16:57 +00:00
|
|
|
rm -rf build && ./do_cmake.sh "$*" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Debug \
|
|
|
|
-D CMAKE_CXX_FLAGS_DEBUG="-O0 -g" \
|
2016-10-12 09:06:00 +00:00
|
|
|
-D CMAKE_C_FLAGS_DEBUG="-O0 -g" \
|
2016-09-15 06:16:57 +00:00
|
|
|
-D ENABLE_GIT_VERSION=OFF \
|
|
|
|
-D WITH_BLKID=OFF \
|
2016-10-19 08:58:22 +00:00
|
|
|
-D WITH_LTTNG=OFF \
|
2016-09-15 06:16:57 +00:00
|
|
|
-D WITH_FUSE=OFF \
|
|
|
|
-D WITH_RBD=OFF \
|
|
|
|
-D WITH_XFS=OFF \
|
|
|
|
-D WITH_KVS=OFF \
|
|
|
|
-D WITH_MANPAGE=OFF \
|
|
|
|
-D WITH_LIBCEPHFS=OFF \
|
|
|
|
-D WITH_CEPHFS=OFF \
|
|
|
|
-D WITH_RADOSGW=OFF \
|
|
|
|
2>&1 | tee cmake.log
|
|
|
|
|
|
|
|
cd build
|
2016-10-16 12:28:07 +00:00
|
|
|
gmake -j$NPROC V=1 VERBOSE=1
|
|
|
|
gmake -j$NPROC check CEPH_BUFFER_NO_BENCH=yes
|
2016-03-24 11:47:34 +00:00
|
|
|
|