Page MenuHomeFreeBSD

USES=cargo to respect CC for linking
ClosedPublic

Authored by jbeich on Dec 12 2018, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 20 2024, 10:29 PM
Unknown Object (File)
Feb 13 2024, 8:45 PM
Unknown Object (File)
Feb 12 2024, 9:08 AM
Unknown Object (File)
Feb 12 2024, 9:08 AM
Unknown Object (File)
Feb 12 2024, 9:08 AM
Unknown Object (File)
Feb 12 2024, 9:08 AM
Unknown Object (File)
Feb 12 2024, 1:23 AM
Unknown Object (File)
Jan 28 2024, 8:18 AM
Subscribers

Details

Summary

No consumers change CC atm but if users do something like CC=ccache gcc9 build will fail as -C linker appears to only accept command (found via PATH) or absolute path.

Test Plan

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jbeich removed a reviewer: portmgr.

Oops, drop repository type. We don't need portmgr in this review. ;)

Hmm, I guess it's ok.

Do you have any example use cases in mind for overriding the linker driver?

I build base and ports using devel/llvm60 and /usr/bin/cc doesn't exist. The binary rust package seems to have /usr/bin/cc hardcoded and can't build any rust ports without this change. (Firefox does build, but that's because its build scripts add -C linker.)

This revision was not accepted when it landed; it landed in state Needs Review.Dec 14 2018, 6:20 PM
This revision was automatically updated to reflect the committed changes.