File: cross.patch

package info (click to toggle)
libsgml-parser-opensp-perl 0.994-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 360 kB
  • sloc: perl: 225; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: FTCBFS: hard codes the build architecture C++ compiler
 libsgml-parser-opensp-perl fails to cross build from source, because the
 Makefile.PL hard codes the build architecture C++ compiler. I'm attaching a
 patch for your convenience to make it use the host one and thus make
 libsgml-parser-opensp-perl cross buildable.
Origin: vendor
Bug: https://bugs.debian.org/1023487
Forwarded: no
Author: Helmut Grohne <helmut@subdivi.de>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2022-11-23

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -13,8 +13,8 @@
 else
 {
     # assume some compatible Linux
-    $options{LD}   = "g++";
-    $options{CC}   = "g++";
+    $options{CC}   = $ENV{CXX} || "g++";
+    $options{LD}   = $options{CC};
     $options{LIBS} = "-lstdc++ -losp";
 }