[Pkg-ceph-commits] [ceph] 02/07: Link with -latomic on mips/mipsel

Gaudenz Steinlin gaudenz at moszumanska.debian.org
Thu Jan 12 22:21:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

gaudenz pushed a commit to branch jewel
in repository ceph.

commit d3babac383789cb651941276a9c15d8489ede514
Author: Gaudenz Steinlin <gaudenz at debian.org>
Date:   Tue Jan 10 09:02:34 2017 +0100

    Link with -latomic on mips/mipsel
    
    The fix for rocksdb alone was not enough. The whole build needs to be
    linked with -latomic. This should probably be fixed upstream in the
    build system.
---
 debian/rules | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8affd57..bf2abc9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -58,12 +58,15 @@ extraopts += --with-system-libs3
 # fails when testing xfs.h on 32bit systems.
 export DEB_CPPFLAGS_MAINT_APPEND=-D_FILE_OFFSET_BITS=64
 
-# Build fix for mips/mipsel
-# This works around a compiler bug which leads to virtual memory exhaustion while compiling
-# the testsuite. See Debian bug #849657.
+# Build fixes for mips/mipsel
+# The first two variables work around a compiler bug which leads to virtual
+# memory exhaustion while compiling the testsuite. See Debian bug #849657.
+# The last is needed because long long atomic operations are not directly
+# supported by the processor.
 ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
   export DEB_CFLAGS_MAINT_APPEND= --param ggc-min-expand=5
   export DEB_CXXFLAGS_MAINT_APPEND= --param ggc-min-expand=5
+  export DEB_LDFLAGS_MAINT_APPEND= -latomic
 endif
 
 %:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git



More information about the Pkg-ceph-commits mailing list