Skip to content
Snippets Groups Projects
Verified Commit 58774d25 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

packages/squid: Fix build on Turris 1.x

parent 1406e28c
1 merge request!699packages/squid: Fix build on Turris 1.x
Pipeline #122626 passed with stages
in 8 minutes and 34 seconds
From ded73a42a6054a3cd01f3185b4d380deeed931e2 Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <michal@hrusecky.net>
Date: Mon, 26 Feb 2024 12:48:07 +0100
Subject: [PATCH] net/squid: Enforce std=c++17
Squid requires c++17 to compile successfully, so enforcing it. This
fixes build with gcc 8.
---
net/squid/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/squid/Makefile b/net/squid/Makefile
index 03fe5ee3b..ccb191a12 100644
--- a/net/squid/Makefile
+++ b/net/squid/Makefile
@@ -109,6 +109,7 @@ CONFIGURE_VARS += \
ac_cv_epoll_works=yes
TARGET_CFLAGS += -Wno-error
+TARGET_CXXFLAGS += -Wno-error -std=c++17
TARGET_LDFLAGS += -latomic
define Package/squid/install
--
2.43.2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment