From 59dbeac5eb059624f04ac20692ff36482f4b1bb6 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 18 Nov 2020 18:12:36 +0100 Subject: [PATCH] Explicit set -std=c++98 There is a long-standing isuse in cld2: https://github.com/CLD2Owners/cld2/issues/47 It just fails to compile with newer C++ standards, so reliably compiling it requires passing -std=c++98. --- Build.PL | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build.PL b/Build.PL index f35bfb5..e9bdf68 100644 --- a/Build.PL +++ b/Build.PL @@ -15,7 +15,7 @@ my $build = Module::Build::WithXSpp->new( 'ExtUtils::Typemap::Basic' => '0.04', }, early_includes => [qw()], - extra_compiler_flags => [ "-Isrc/cld2/internal", "-Isrc/cld2/public", "-Icld2/internal", "-Icld2/public" ], + extra_compiler_flags => [ '-std=c++98', "-Isrc/cld2/internal", "-Isrc/cld2/public", "-Icld2/internal", "-Icld2/public" ], #extra_linker_flags => [ (defined($additional_link_dir) ? "-L$additional_link_dir" : ()), "-lcld2_full" ], );