diff options
Diffstat (limited to 'meta/recipes-support/boost/files')
-rw-r--r-- | meta/recipes-support/boost/files/boost-1.54.0-thread-link_atomic.patch | 59 | ||||
-rw-r--r-- | meta/recipes-support/boost/files/glibc.patch | 26 |
2 files changed, 0 insertions, 85 deletions
diff --git a/meta/recipes-support/boost/files/boost-1.54.0-thread-link_atomic.patch b/meta/recipes-support/boost/files/boost-1.54.0-thread-link_atomic.patch deleted file mode 100644 index 62af3d1aa3..0000000000 --- a/meta/recipes-support/boost/files/boost-1.54.0-thread-link_atomic.patch +++ /dev/null @@ -1,59 +0,0 @@ -Link boost_thread with boost_atomic to avoid undefined references to -boost::atomic::detail::lock_pool::get_lock_for(). - -From https://svn.boost.org/trac/boost/ticket/9041 - -Phil Blundell <pb@pbcl.net> -Upstream-Status: Backport - -diff -Nurp boost_1_54_0/libs/thread/build/has_atomic_flag_lockfree_test.cpp boost_1_54_0.pm/libs/thread/build/has_atomic_flag_lockfree_test.cpp ---- boost_1_54_0/libs/thread/build/has_atomic_flag_lockfree_test.cpp 1970-01-01 01:00:00.000000000 +0100 -+++ boost_1_54_0.pm/libs/thread/build/has_atomic_flag_lockfree_test.cpp 2013-08-23 19:51:52.706329968 +0200 -@@ -0,0 +1,14 @@ -+// Copyright (c) 2013, Petr Machata, Red Hat Inc. -+// -+// Use modification and distribution are subject to the boost Software -+// License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). -+ -+#include "../../../boost/atomic.hpp" -+#include "../../../boost/static_assert.hpp" -+ -+int -+main(int argc, char *argv[]) -+{ -+ BOOST_STATIC_ASSERT(BOOST_ATOMIC_FLAG_LOCK_FREE); -+ return 0; -+} -diff -Nurp boost_1_54_0/libs/thread/build/Jamfile.v2 boost_1_54_0.pm/libs/thread/build/Jamfile.v2 ---- boost_1_54_0/libs/thread/build/Jamfile.v2 2013-06-15 12:35:45.000000000 +0200 -+++ boost_1_54_0.pm/libs/thread/build/Jamfile.v2 2013-08-23 19:52:30.018613408 +0200 -@@ -36,6 +36,7 @@ import os ; - import feature ; - import indirect ; - import path ; -+import configure ; - - project boost/thread - : source-location ../src -@@ -140,6 +141,8 @@ local rule default_threadapi ( ) - feature.feature threadapi : pthread win32 : propagated ; - feature.set-default threadapi : [ default_threadapi ] ; - -+exe has_atomic_flag_lockfree : ../build/has_atomic_flag_lockfree_test.cpp ; -+ - rule tag ( name : type ? : property-set ) - { - local result = $(name) ; -@@ -248,6 +251,12 @@ rule requirements ( properties * ) - { - local result ; - -+ if ! [ configure.builds has_atomic_flag_lockfree -+ : $(properties) : "lockfree boost::atomic_flag" ] -+ { -+ result += <library>/boost/atomic//boost_atomic ; -+ } -+ - if <threadapi>pthread in $(properties) - { - result += <define>BOOST_THREAD_POSIX ; diff --git a/meta/recipes-support/boost/files/glibc.patch b/meta/recipes-support/boost/files/glibc.patch deleted file mode 100644 index c33ea64713..0000000000 --- a/meta/recipes-support/boost/files/glibc.patch +++ /dev/null @@ -1,26 +0,0 @@ ------------------------------------------------------------------------- -r84950 | johnmaddock | 2013-07-04 02:13:23 -0700 (Thu, 04 Jul 2013) | 2 lines - -Patch for recent versions of glibc which always assume int64_t support. -Fixes #8731. - -Upstream-Status: Backport - -Signed-off-by: Saul Wold <sgw@linux.intel.com> - -Index: boost_1_54_0/boost/cstdint.hpp -=================================================================== ---- boost_1_54_0.orig/boost/cstdint.hpp -+++ boost_1_54_0/boost/cstdint.hpp -@@ -41,7 +41,10 @@ - // so we disable use of stdint.h when GLIBC does not define __GLIBC_HAVE_LONG_LONG. - // See https://svn.boost.org/trac/boost/ticket/3548 and http://sources.redhat.com/bugzilla/show_bug.cgi?id=10990 - // --#if defined(BOOST_HAS_STDINT_H) && (!defined(__GLIBC__) || defined(__GLIBC_HAVE_LONG_LONG)) -+#if defined(BOOST_HAS_STDINT_H) \ -+ && (!defined(__GLIBC__) \ -+ || defined(__GLIBC_HAVE_LONG_LONG) \ -+ || (defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 17))))) - - // The following #include is an implementation artifact; not part of interface. - # ifdef __hpux |