Date: Thu, 14 Mar 2019 16:25:01 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 236529] Mk/Uses/cargo.mk: Corner case makes linking phase to fail Message-ID: <bug-236529-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236529 Bug ID: 236529 Summary: Mk/Uses/cargo.mk: Corner case makes linking phase to fail Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: tuxillo@quantumachine.net Created attachment 202856 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202856&action= =3Dedit log file Hi, In Mk/Uses/cargo.mk there is this, line 65'ish: [...] RUSTC=3D${LOCALBASE}/bin/rustc \ RUSTDOC=3D${LOCALBASE}/bin/rustdoc \ RUSTFLAGS=3D"${RUSTFLAGS} -C linker=3D${CC:Q} ${LDFLAGS:S/^/-C link= -arg=3D/}" [...] RUSTFLAGS will end up being '-C linker=3Dcc -C link-arg=3D' in case LDFLAGS= is empty. This shouldn't be a problem and in fact for clang it is not, it will just ignore the "" parameter passed to the '-C linker' command. But for gcc it is a problem, it will ENOENT because rustc will pass a "", coming from the empty LDFLAGS as explained above. Example (from DragonFly BSD's DPorts) attached to this PR. Regards, Antonio Huete --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236529-7788>