1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
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}");
|