gentoo-ebuilds/dev-perl/Wx-Scintilla/files/Wx-Scintilla-0.39-force-c++11.patch
Alfred Wingate 8815b1468e
dev-perl/Wx-Scintilla: force c++11 due to std::auto_ptr
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-09-05 20:32:50 +01:00

13 lines
401 B
Diff

Uses std::auto_ptr which has been officially removed in C++17.
While GCC still has it present LLVM has explicitly removed it.
--- a/inc/Module/Build/Scintilla/GTK.pm
+++ b/inc/Module/Build/Scintilla/GTK.pm
@@ -50,6 +50,7 @@
'-o ' . $object_name,
'-O2',
'-Wall',
+ '-std=c++11',
$object_name !~ /((Plat|Scintilla)WX|scintilla)\.o/
? '-Wno-missing-braces -Wno-char-subscripts'
: '',