Tuesday, November 02, 2021

Re: [NEW] devel/elfcat

On Tue, Nov 02, 2021 at 01:27:42PM +0000, Klemens Nanni wrote:
> On Tue, Nov 02, 2021 at 12:39:53PM +0000, Stuart Henderson wrote:
> > for checking libs for WANTLIB, use objdump -p or readelf -d and look at NEEDED
> > ldd also shows you libraries pulled in by dep's

Yes, c++abi is definitely NEEDED on !sparc64 RUST_ARCHS. Grepping the
ports tree lists it for most (all?) Rust ports.

> > > I haven't verified this is the reason, but a quick grep in Rust source
> > > tree found this in library/unwind/build.rs:
> > >
> > > } else if target.contains("openbsd") {
> > > if target.contains("sparc64") {
> > > println!("cargo:rustc-link-lib=gcc");
> > > } else {
> > > println!("cargo:rustc-link-lib=c++abi");
> > > }
> > > } else if target.contains("solaris") {
> > >
> >
> > so I guess kn's test was on sparc64
>
> Yes, sorry for not mentioning this; fcambus asked me days ago already
> but I noticed just now that this mail was off-list...

No worries. I went ahead and committed the port, thanks!

No comments:

Post a Comment