File: cross.patch

package info (click to toggle)
libalgorithm-svm-perl 0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 436 kB
  • sloc: cpp: 3,051; perl: 364; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
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}");