[Pkg-ceph-commits] [ceph] 02/06: Link with libatomic and --as-needed on all archs

James Downing Page jamespage at moszumanska.debian.org
Wed Jan 18 11:40:05 UTC 2017


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

jamespage pushed a commit to branch ubuntu/zesty
in repository ceph.

commit 9bccb15c40f83316bb88403a533a740f0bc65a3e
Author: Gaudenz Steinlin <gaudenz at debian.org>
Date:   Wed Jan 11 09:43:26 2017 +0100

    Link with libatomic and --as-needed on all archs
    
    --as-needed was already used anyway, so we can link with libatomic
    everywhere and let the linker decide if it's needed. This should fix the
    build for several more non-release architectures.
    
    Closes: #850831
    (cherry picked from commit b7e92635a709f0d0a977c6d912b48e9f84e35327)
---
 debian/rules | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8b3d4b6..a68a505 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,10 @@
 
 # Limit parallel builds to 2 for now
 
-# minimise needless linking
-export DEB_LDFLAGS_MAINT_APPEND= -Wl,--as-needed
+# minimise needless linking and link to libatomic
+# The last is needed because long long atomic operations are not directly
+# supported by all processor architectures
+export DEB_LDFLAGS_MAINT_APPEND= -Wl,--as-needed -latomic
 
 # Enable hardening
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all

-- 
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