Description: Honour CXX environment variable
 to enable using the host architecture C++ compiler
 instead of the build architecture one, thus allowing
 cross-building.
Origin: vendor
Bug-Debian: https://bugs.debian.org/1126389
Author: Helmut Grohne <helmut@subdivi.de>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2026-01-25
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=172899
Bug: https://rt.cpan.org/Ticket/Display.html?id=172899

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,7 +1,7 @@
 use ExtUtils::MakeMaker;
 use Config;
 
-$CC = 'g++';
+$CC = $ENV{'CXX'} // 'g++';
 
 %args = ('CCFLAGS' => "-Wall $Config{ccflags}");
 
