diff -ur a/SCons/Config/gnu b/SCons/Config/gnu
--- a/SCons/Config/gnu	2022-09-20 00:40:30.000000000 +0800
+++ b/SCons/Config/gnu	2024-05-24 23:23:50.170000800 +0800
@@ -62,6 +62,7 @@
 ### defines
 
 defenv.Append(CPPDEFINES = [('NSISCALL', '$STDCALL')])
+defenv.Append(CXXFLAGS = ['-std=c++11'])
 
 ### helper functions
 
