[Buildroot] [git commit branch/2023.11.x] package/squid: fix build with host gcc 10
Peter Korsgaard
peter at korsgaard.com
Fri Mar 22 19:54:08 UTC 2024
commit: https://git.buildroot.net/buildroot/commit/?id=b0ab415b04a774c8df64b4d541a8e876e1b3eeba
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.11.x
Pass -std=c++17 to fix the following build failure with host gcc 10
raised since bump to version 6.6 in commit
c13199c9326fa2daa574f08ec8fc063a48d0eb06:
/usr/bin/g++ -O2 -I/home/buildroot/instance-0/output-1/host/include -o cf_gen ./cf_gen.cc -I. -I../include/ -I../src
./cf_gen.cc: In function 'int main(int, char**)':
./cf_gen.cc:268:63: error: forming reference to void
268 | auto &newEntry = entries.emplace_back(name);
| ^
Fixes:
- http://autobuild.buildroot.org/results/613fee008c77f8dbbe04df9a4ce4347e43de9ef9
- https://bugs.buildroot.org/show_bug.cgi?id=15997
Reported-by: Roland Franke
Suggested-by: Peter Seiderer <ps.report at gmx.net>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout at mind.be>
(cherry picked from commit 9347905b95dfe045ee40ae69d9d3f00a2c1b7168)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/squid/squid.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/squid/squid.mk b/package/squid/squid.mk
index 3a9edac71e..6a2b522336 100644
--- a/package/squid/squid.mk
+++ b/package/squid/squid.mk
@@ -21,7 +21,7 @@ SQUID_CONF_ENV = \
ac_cv_func_strnstr=no \
ac_cv_have_squid=yes \
BUILDCXX="$(HOSTCXX)" \
- BUILDCXXFLAGS="$(HOST_CXXFLAGS)"
+ BUILDCXXFLAGS="$(HOST_CXXFLAGS) -std=c++17"
SQUID_CONF_OPTS = \
--enable-async-io=8 \
--enable-linux-netfilter \
More information about the buildroot
mailing list