From f4581fa2be5a22846cc3ad3ddcaa61a0742c22c4b8553c47b85bfc141a329768 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Tue, 21 Jun 2016 18:56:30 +0000 Subject: [PATCH] Accepting request 403930 from home:alois:branches:devel:libraries:c_c++ Fixes linking problem with Boost::Atomic on qbittorrent on aarch64. OBS-URL: https://build.opensuse.org/request/show/403930 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=61 --- libtorrent-rasterbar.changes | 6 ++++++ libtorrent-rasterbar.spec | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index 8664bce..1ef0e01 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 21 18:33:03 UTC 2016 - aloisio@gmx.com + +- Added explicit linking of libboost_devel for aarch64, see + https://svn.boost.org/trac/boost/ticket/9041 + ------------------------------------------------------------------- Mon Jun 20 12:24:04 UTC 2016 - aloisio@gmx.com diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index 06c7cb2..303e082 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -137,6 +137,10 @@ Documentation for the libtorrent-rasterbar package. export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="$CFLAGS -std=c++11" export LDFLAGS="%{optflags} -lrt" +# Some architectures require explicit linking of libboost_atomic on 1.55 and older. +%ifarch aarch64 +export LIBS="-lboost_atomic" +%endif %global _configure ../configure %if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})