From ec2953e3b8cd86c91c05188d04e8054bc01cbe6c Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Thu, 4 Jun 2026 20:38:46 +0000 Subject: [PATCH] build: make CXX overridable (CXX ?= g++) for clang builds The Makefile hardcoded `CXX = g++`, which a `CXX=clang++ make` environment prefix does not override. Downstream (ProxySQL deps build) compiles this with clang in containers that ship only clang/clang++ (no g++), so the build failed with exit 127 (g++: command not found). Using `?=` lets the environment-provided compiler win while keeping g++ as the default. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0d0087a..37a77a8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CXX = g++ +CXX ?= g++ CXXFLAGS = -std=c++17 -Wall -Wextra -g -O2 CPPFLAGS = -I./include -I./third_party/googletest/googletest/include