--- Build.PL.orig	2018-07-08 11:02:21.000000000 +1000
+++ Build.PL	2018-07-08 11:03:07.000000000 +1000
@@ -14,7 +14,7 @@
      xs_files => { 'Detector.xs' => 'lib/Encode/Detect/Detector.xs' },
      dist_version_from => 'Detect.pm',
      extra_compiler_flags => ['-x', 'c++', '-Iinclude'],
-     extra_linker_flags => ['-lstdc++'],
+     extra_linker_flags => ['-lc++'],
     );
 $build->create_build_script;
 
