From 1225ec57b6f2482833bb91bbca759d7d4cdeaca7 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 28 Oct 2014 20:40:54 +0100 Subject: [PATCH] - i486 needs libatomic --- rocksdb.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rocksdb.spec b/rocksdb.spec index 2d4cb77..ab9c78c 100644 --- a/rocksdb.spec +++ b/rocksdb.spec @@ -11,6 +11,9 @@ Patch0: %{name}-libdir.patch URL: http://rocksdb.org/ BuildRequires: bzip2-devel BuildRequires: gflags-devel +%ifarch i386 i486 +BuildRequires: libatomic-devel +%endif BuildRequires: libstdc++-devel >= 6:4.7 BuildRequires: libtcmalloc-devel BuildRequires: lz4-devel @@ -54,6 +57,9 @@ Statyczna biblioteka RocksDB. %patch0 -p1 %build +%ifarch i386 i486 +PLATFORM_LDFLAGS="-latomic" \ +%endif %{__make} all shared_lib \ CC="%{__cc}" \ CXX="%{__cxx}" \ -- 2.43.0