Skip to content

Commit 9849c66

Browse files
committed
Merge pull request #6280
b19a88b depends: fix Boost 1.55 build on GCC 5 (Jacob Welsh)
2 parents 324f200 + b19a88b commit 9849c66

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

depends/packages/boost.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $(package)_version=1_55_0
33
$(package)_download_path=http://sourceforge.net/projects/boost/files/boost/1.55.0
44
$(package)_file_name=$(package)_$($(package)_version).tar.bz2
55
$(package)_sha256_hash=fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52
6-
$(package)_patches=darwin_boost_atomic-1.patch darwin_boost_atomic-2.patch
6+
$(package)_patches=darwin_boost_atomic-1.patch darwin_boost_atomic-2.patch gcc_5_no_cxx11.patch
77

88
define $(package)_set_vars
99
$(package)_config_opts_release=variant=release
@@ -28,6 +28,7 @@ endef
2828
define $(package)_preprocess_cmds
2929
patch -p2 < $($(package)_patch_dir)/darwin_boost_atomic-1.patch && \
3030
patch -p2 < $($(package)_patch_dir)/darwin_boost_atomic-2.patch && \
31+
patch -p2 < $($(package)_patch_dir)/gcc_5_no_cxx11.patch && \
3132
echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam
3233
endef
3334

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From eec808554936ae068b23df07ab54d4dc6302a695 Mon Sep 17 00:00:00 2001
2+
From: jzmaddock <[email protected]>
3+
Date: Sat, 23 Aug 2014 09:38:02 +0100
4+
Subject: [PATCH] Fix BOOST_NO_CXX11_VARIADIC_TEMPLATES definition - the
5+
feature was introduced in GCC 4.4.
6+
7+
---
8+
include/boost/config/compiler/gcc.hpp | 9 +--------
9+
1 file changed, 1 insertion(+), 8 deletions(-)
10+
11+
diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp
12+
index f37159d..97d8a18 100644
13+
--- a/include/boost/config/compiler/gcc.hpp
14+
+++ b/include/boost/config/compiler/gcc.hpp
15+
@@ -154,14 +154,6 @@
16+
# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
17+
# define BOOST_NO_CXX11_RVALUE_REFERENCES
18+
# define BOOST_NO_CXX11_STATIC_ASSERT
19+
-
20+
-// Variadic templates compiler:
21+
-// http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
22+
-# if defined(__VARIADIC_TEMPLATES) || (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4) && defined(__GXX_EXPERIMENTAL_CXX0X__))
23+
-# define BOOST_HAS_VARIADIC_TMPL
24+
-# else
25+
-# define BOOST_NO_CXX11_VARIADIC_TEMPLATES
26+
-# endif
27+
#endif
28+
29+
// C++0x features in 4.4.n and later
30+
@@ -176,6 +168,7 @@
31+
# define BOOST_NO_CXX11_DELETED_FUNCTIONS
32+
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
33+
# define BOOST_NO_CXX11_INLINE_NAMESPACES
34+
+# define BOOST_NO_CXX11_VARIADIC_TEMPLATES
35+
#endif
36+
37+
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)

0 commit comments

Comments
 (0)