]>
git.proxmox.com Git - ceph.git/blob - ceph/do_freebsd.sh
2 NPROC
=`sysctl -n hw.ncpu`
4 # we need bash first otherwise almost nothing will work
5 if [ ! -L /bin
/bash
]; then
6 echo install bash and link
/bin
/bash to
/usr
/local
/bin
/bash
8 echo sudo pkg
install bash
9 echo ln -s /usr
/local
/bin
/bash
/bin
/bash
12 if [ x
"$1"x
= x
"--deps"x
]; then
13 sudo .
/install-deps.sh
16 if [ x
"$CEPH_DEV"x
!= xx
]; then
17 BUILDOPTS
="$BUILDOPTS V=1 VERBOSE=1"
18 CXX_FLAGS_DEBUG
="-DCEPH_DEV"
19 C_FLAGS_DEBUG
="-DCEPH_DEV"
22 # To test with a new release Clang, use with cmake:
23 # -D CMAKE_CXX_COMPILER="/usr/local/bin/clang++-devel" \
24 # -D CMAKE_C_COMPILER="/usr/local/bin/clang-devel" \
26 rm -rf build
&& .
/do_cmake.sh
"$*" \
27 -D CMAKE_BUILD_TYPE
=Debug \
28 -D CMAKE_CXX_FLAGS_DEBUG
="$CXX_FLAGS_DEBUG -O0 -g" \
29 -D CMAKE_C_FLAGS_DEBUG
="$C_FLAGS_DEBUG -O0 -g" \
30 -D ENABLE_GIT_VERSION
=OFF \
31 -D WITH_SYSTEM_BOOST
=ON \
39 -D WITH_LIBCEPHFS
=OFF \
46 (cd build
; gmake
-j$NPROC $BUILDOPTS )
47 (cd build
; gmake
-j$NPROC $BUILDOPTS ceph-disk
)
48 (cd build
; gmake
-j$NPROC $BUILDOPTS ceph-detect-init
)
52 (cd build
; ctest
-j$NPROC || ctest
--rerun-failed --output-on-failure)