[Bug 235063] devel/rust-cbindgen: fix build on tier2 arches

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 18 15:58:24 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235063

Tobias Kortkamp <tobik at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #10 from Tobias Kortkamp <tobik at freebsd.org> ---
cargo.mk currently uses ${CC} as selected by the user for the linker.
It should be easy to overwrite it on powerpc64 and set it to either
gcc8 explicitly or just not pass -C linker to rustc if the user has
not overwritten CC or something.

As for the libc patches, upstreaming them is the only good way to
deal with it.  Adding the same patches 30 times (or whatever the
current number of Rust ports is) is a bad idea.  I see that the
some (or all?) of the needed patches are already upstream [1].  Let's
hope they release a new libc crate version soon, then we can proceed
as Jan has suggested in comment #1.

[1]
https://github.com/rust-lang/libc/blob/master/src/unix/bsd/freebsdlike/freebsd

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gecko mailing list