cc-tool: use the same C++ standard as boost
PATCH 1/1 cc-tool: use the same C++ standard as boost
When boost context is enabled, we build boost with -std=c++11. That causes cc-tool to fail, which was using the gcc default c++14.
--- package/cc-tool/cc-tool.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/cc-tool/cc-tool.mk +5 -0
@@ -18,6 +18,11 @@ CC_TOOL_AUTORECONF = YES CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)" +# With boost context selected, boost gets built with c++11 +ifeq ($(BR2_PACKAGE_BOOST_CONTEXT)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),yy) +CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif + # Help boost.m4 find the Boost Regex library, which needs the pthread # library, but isn't detected using a modern (pkg-config) mechanism. ifeq ($(BR2_STATIC_LIBS),y)
Signature · 1 line
2.19.0
PATCH 1/1 cc-tool: use the same C++ standard as boost
Ferdinand,
Quoted 16 lines · Ferdinand van Aartsen
When boost context is enabled, we build boost with -std=c++11. That causes cc-tool to fail, which was using the gcc default c++14.
Signed-off-by Ferdinand van Aartsen <[email protected]>--- package/cc-tool/cc-tool.mk | 5 +++++ 1 file changed, 5 insertions(+)package/cc-tool/cc-tool.mk +0
-0@@ -18,6 +18,11 @@ CC_TOOL_AUTORECONF = YES CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
package/cc-tool/cc-tool.mk CC_TOOL_AUTORECONF = YES
Quoted 10 lines
package/cc-tool/cc-tool.mk +5
-1+# With boost context selected, boost gets built with c++11 +ifeq ($(BR2_PACKAGE_BOOST_CONTEXT)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),yy) +CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif + # Help boost.m4 find the Boost Regex library, which needs the pthread # library, but isn't detected using a modern (pkg-config) mechanism. ifeq ($(BR2_STATIC_LIBS),y) --
I believe this one is related to this patch, any impacts?
http://patchwork.ozlabs.org/patch/983327/
Matt
PATCH 1/1 cc-tool: use the same C++ standard as boost
Matthew Weber schreef op 2018-10-23 13:18:
Quoted 21 lines
Ferdinand,
Quoted 17 lines · Ferdinand van Aartsen
When boost context is enabled, we build boost with -std=c++11. That causes cc-tool to fail, which was using the gcc default c++14.
Signed-off-by Ferdinand van Aartsen <[email protected]>--- package/cc-tool/cc-tool.mk | 5 +++++ 1 file changed, 5 insertions(+)package/cc-tool/cc-tool.mk +0
-0@@ -18,6 +18,11 @@ CC_TOOL_AUTORECONF = YES CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
Quoted 14 lines
Quoted 10 lines
package/cc-tool/cc-tool.mk +5
-0+# With boost context selected, boost gets built with c++11 +ifeq ($(BR2_PACKAGE_BOOST_CONTEXT)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),yy) +CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif + # Help boost.m4 find the Boost Regex library, which needs the pthread # library, but isn't detected using a modern (pkg-config) mechanism.ifeq ($(BR2_STATIC_LIBS),y)
--I believe this one is related to this patch, any impacts?
http://patchwork.ozlabs.org/patch/983327/
You're right, hadn't spotted that one, then that seems to be the correct solution.
Ferdinand
PATCH 1/1 cc-tool: use the same C++ standard as boost
Ferdinand,
Quoted 38 lines · Ferdinand van Aartsen
Matthew Weber schreef op 2018-10-23 13:18:
Quoted 21 lines
Ferdinand,
Quoted 17 lines · Ferdinand van Aartsen
When boost context is enabled, we build boost with -std=c++11. That causes cc-tool to fail, which was using the gcc default c++14.
Signed-off-by Ferdinand van Aartsen <[email protected]>--- package/cc-tool/cc-tool.mk | 5 +++++ 1 file changed, 5 insertions(+)package/cc-tool/cc-tool.mk +0
-0@@ -18,6 +18,11 @@ CC_TOOL_AUTORECONF = YES CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"Quoted 14 lines
Quoted 10 lines
package/cc-tool/cc-tool.mk +5
-0+# With boost context selected, boost gets built with c++11 +ifeq ($(BR2_PACKAGE_BOOST_CONTEXT)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),yy) +CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif + # Help boost.m4 find the Boost Regex library, which needs the pthread # library, but isn't detected using a modern (pkg-config) mechanism.ifeq ($(BR2_STATIC_LIBS),y)
--I believe this one is related to this patch, any impacts?
http://patchwork.ozlabs.org/patch/983327/
Quoted 2 lines
You're right, hadn't spotted that one, then that seems to be the correct solution.
Would you mind providing your review/tested by on that series?
Thanks!
Matt
PATCH 1/1 cc-tool: use the same C++ standard as boost
In reply to Ferdinand van AartsenQuoted 36 lines · Ferdinand van Aartsen
Matthew Weber schreef op 2018-10-23 13:18:
Quoted 21 lines
Ferdinand,
Quoted 17 lines · Ferdinand van Aartsen
When boost context is enabled, we build boost with -std=c++11. That causes cc-tool to fail, which was using the gcc default c++14.
Signed-off-by Ferdinand van Aartsen <[email protected]>---
?package/cc-tool/cc-tool.mk | 5 +++++
?1 file changed, 5 insertions(+)package/cc-tool/cc-tool.mk +0
-0@@ -18,6 +18,11 @@ CC_TOOL_AUTORECONF = YES?CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr ?CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
Quoted 13 lines
Quoted 9 lines
package/cc-tool/cc-tool.mk +5
-0+# With boost context selected, boost gets built with c++11 +ifeq ($(BR2_PACKAGE_BOOST_CONTEXT)$(BR2_TOOLCHAIN_GCC_AT_LEAST_4_7),yy) +CC_TOOL_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" +endif +?# Help boost.m4 find the Boost Regex library, which needs the pthread ?# library, but isn't detected using a modern (pkg-config) mechanism. ?ifeq ($(BR2_STATIC_LIBS),y)
I believe this one is related to this patch, any impacts?
http://patchwork.ozlabs.org/patch/983327/
Quoted 1 line
You're right, hadn't spotted that one, then that seems to be the correct solution.
I've marked this one as Superseded in patchwork.
Regards,
Arnout
Quoted 6 lines
Ferdinand
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot