This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- libcrypt-xxhash-perl-0.06.orig/Build.PL
+++ libcrypt-xxhash-perl-0.06/Build.PL
@@ -5,16 +5,6 @@ use warnings;
 use strict;
 use Module::Build ();
 use Config ();
-use File::Which qw/ which /;
-
-my $has_cpp_compiler = scalar(which("c++"));
-
-my %Config = %Config::Config;
-my @cc_flags = split(/ /, $Config{'ccflags'});
-
-push(@cc_flags, "-O3", "-msse2", "-msse4.2");
-push(@cc_flags, "-DCPP=1", "-std=c++17") if $has_cpp_compiler;
-push(@cc_flags, "-std=c17") if !$has_cpp_compiler;
 
 my $build = Module::Build->new(
     module_name         => 'Crypt::xxHash',
@@ -23,9 +13,6 @@ my $build = Module::Build->new(
     configure_requires  => {
         'Module::Build' => 0.19 # xs
     },
-    config => {
-        $has_cpp_compiler ? (cc => 'c++', ld => 'c++') : (),
-    },
     build_requires       => {
         'File::Which'        => 1.21,
         'ExtUtils::CBuilder' => 0.280225,
@@ -35,8 +22,6 @@ my $build = Module::Build->new(
     requires       => {
 	},
     needs_compiler => 1,
-    extra_compiler_flags => [@cc_flags],
-    extra_linker_flags   => [@cc_flags],
     include_dirs   => ['.', 'src', 'ext/xxHash'], # ext/xxHash/tests/collisions/allcodecs
     c_source       => ['.', 'src'],
     xs_files       => {
