From d992404d4f16be821cffb34b1eef52263baa6190 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 2 Jul 2023 21:14:47 +0200 Subject: FTCBFS: hard codes the build architecture C++ compiler Origin: vendor Bug: https://bugs.debian.org/1023487 Forwarded: no Reviewed-by: gregor herrmann Last-Update: 2022-11-23 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. Gbp-Pq: Name cross.patch --- Makefile.PL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index f3a2eeb..46a6041 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -13,8 +13,8 @@ if ($^O eq "MSWin32") else { # assume some compatible Linux - $options{LD} = "g++"; - $options{CC} = "g++"; + $options{CC} = $ENV{CXX} || "g++"; + $options{LD} = $options{CC}; $options{LIBS} = "-lstdc++ -losp"; } -- cgit v1.2.3