Skip to content

Commit

Permalink
build: FreeBSD building needs the llvm linker
Browse files Browse the repository at this point in the history
Signed-off-by: Willem Jan Withagen <[email protected]>
  • Loading branch information
wjwithagen committed Nov 25, 2018
1 parent f89c75f commit 6ef950e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions do_freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ fi
# To test with a new release Clang, use with cmake:
# -D CMAKE_CXX_COMPILER="/usr/local/bin/clang++-devel" \
# -D CMAKE_C_COMPILER="/usr/local/bin/clang-devel" \
COMPILE_FLAGS="-O0 -g"
if [ `sysctl -n kern.osreldate` -le 1102000 ]; then
# We need to use the llvm linker for linking ceph-dencoder
COMPILE_FLAGS="$COMPILE_FLAGS -fuse-ld=/usr/bin/ld.lld"
fi
CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG $COMPILE_FLAGS"
CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG $COMPILE_FLAGS"

#
# On FreeBSD we need to preinstall all the tools that are required for building
# dashboard, because versions fetched are not working on FreeBSD.
Expand All @@ -27,8 +35,8 @@ fi
./do_cmake.sh "$*" \
-D WITH_CCACHE=ON \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG -O0 -g" \
-D CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG -O0 -g" \
-D CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG" \
-D CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG" \
-D ENABLE_GIT_VERSION=OFF \
-D WITH_SYSTEM_BOOST=ON \
-D WITH_SYSTEM_NPM=ON \
Expand Down

0 comments on commit 6ef950e

Please sign in to comment.