[Pkg-ceph-commits] [ceph] 02/03: Add patch to build rocksdb with -latomic on mips/el
Gaudenz Steinlin
gaudenz at moszumanska.debian.org
Sun Jan 8 13:59:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
gaudenz pushed a commit to branch jewel-fix-mips
in repository ceph.
commit c31e79dce240163da0ff39399306c70d228418a3
Author: Gaudenz Steinlin <gaudenz at debian.org>
Date: Sun Jan 8 14:46:06 2017 +0100
Add patch to build rocksdb with -latomic on mips/el
---
debian/patches/mips_mipsel_libatomic.patch | 13 +++++++++++++
debian/patches/series | 1 +
2 files changed, 14 insertions(+)
diff --git a/debian/patches/mips_mipsel_libatomic.patch b/debian/patches/mips_mipsel_libatomic.patch
new file mode 100644
index 0000000..53e51f9
--- /dev/null
+++ b/debian/patches/mips_mipsel_libatomic.patch
@@ -0,0 +1,13 @@
+--- a/src/rocksdb/build_tools/build_detect_platform
++++ b/src/rocksdb/build_tools/build_detect_platform
+@@ -362,6 +362,10 @@
+ COMMON_FLAGS="$COMMON_FLAGS -march=native "
+ fi
+
++if [ "$TARGET_ARCHITECTURE" = "mips" ] ; then
++ PLATFORM_LDFLAGS="$PLATFORM_LDFLAGS -latomic"
++fi
++
+ PLATFORM_CCFLAGS="$PLATFORM_CCFLAGS $COMMON_FLAGS"
+ PLATFORM_CXXFLAGS="$PLATFORM_CXXFLAGS $COMMON_FLAGS"
+
diff --git a/debian/patches/series b/debian/patches/series
index 6b6b57d..506e4a7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,6 +15,7 @@ virtualenv-never-download.patch
tests-disable.patch
# Use correct compiler flags on armel
softfp-armel.patch
+mips_mipsel_libatomic.patch
## From Ubuntu
fix-cycles-arch.patch
--
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