Bug#1049903: Acknowledgement (petsc: misbuild with gcc-13)

Steve Langasek steve.langasek at canonical.com
Fri Sep 1 16:39:58 BST 2023


Hi Drew,

Sorry, your message didn't go to 1049903-submitter at bugs.debian.org so I
didn't receive it.

> With patching, wouldn't it be simpler to just add -lstdc++ to
> CXX_LINKER_FLAGS at configuration time (in debian/rules) rather than
> hacking the upstream detection code?  As you say, hardcoding in the
> upstream scripts doesn't really resolve the underlying problem.

Unfortunately, CXX_LINKER_FLAGS is the variable used to pass flags to the
*C++ linker*.  But what is being done here is invoking the *C linker* to
link to C++ code.

And if the code in question were being linked with the C++ linker, it
wouldn't need an explicit -lstdc++ argument anyway.

I tried every which way to get this to work via environment exports with no
luck.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20230901/49740cd9/attachment.sig>


More information about the debian-science-maintainers mailing list