]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build: LLVM ld does not like the versioning scheme 26801/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 6 Mar 2019 22:23:33 +0000 (23:23 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 6 Mar 2019 22:23:33 +0000 (23:23 +0100)
There is a few essentail differences between the way versioning
and a version-map is interpreted for binutils ld and LLVM ld.
The easy way out for the time being is to use the one that works.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
do_freebsd.sh
install-deps.sh

index ea3caa91dd461e4eac657e264878f75b8245d8c7..b0f0f5dab31c56e5d63dfa6a2a7335469fd21572 100755 (executable)
@@ -15,10 +15,7 @@ fi
 #      -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
+COMPILE_FLAGS="${COMPILE_FLAGS} -fuse-ld=/usr/local/bin/ld -Wno-unused-command-line-argument"
 CMAKE_CXX_FLAGS_DEBUG="$CXX_FLAGS_DEBUG $COMPILE_FLAGS"
 CMAKE_C_FLAGS_DEBUG="$C_FLAGS_DEBUG $COMPILE_FLAGS"
 
index 0beda2753c7362209f3acdee356b8491cd46760a..b1a5219cfca53d5b9a8f90b56eb7d8af236b1f72 100755 (executable)
@@ -201,6 +201,7 @@ EOF
 if [ x$(uname)x = xFreeBSDx ]; then
     $SUDO pkg install -yq \
         devel/babeltrace \
+        devel/binutils \
         devel/git \
         devel/gperf \
         devel/gmake \