Page MenuHomeFreeBSD

bsd.gcc.mk: add static keyword for USE_GCC
AbandonedPublic

Authored by novel on Jul 10 2016, 11:14 PM.
Tags
None
Referenced Files
F163292523: D7173.id18255.diff
Tue, Jul 21, 7:24 PM
F163286305: D7173.id.diff
Tue, Jul 21, 6:10 PM
Unknown Object (File)
Wed, Jul 8, 6:36 AM
Unknown Object (File)
Tue, Jun 30, 9:40 PM
Unknown Object (File)
Sat, Jun 27, 4:01 PM
Unknown Object (File)
Jun 18 2026, 3:17 AM
Unknown Object (File)
Jun 17 2026, 1:59 PM
Unknown Object (File)
Jun 17 2026, 2:45 AM
Subscribers

Details

Reviewers
gerald
Summary

A proof of concept patch that adds "static" keyword for USE_GCC. With that keyword specified, gcc is not pulled as a dependency because statically linked code does not need it.

See Also: D7223

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

novel retitled this revision from to bsd.gcc.mk: add static keyword for USE_GCC.
novel updated this object.
novel edited the test plan for this revision. (Show Details)
novel added a reviewer: gerald.
novel set the repository for this revision to rP FreeBSD ports repository.

I wonder if it's better to stay with :build as the argument name so it's consistent with other USES/USE_* bits, all of which don't expose implementation details in their naming, instead just defined by the 'dependency type'.

I think it's easier/more obvious for people (porters/maintainers) to know that GCC is just a build only dependency, rather than something being statically linked

Yeah, it should be :build to be consistent.

I'm abandoning this review, please look at the better patch that's doing the same thing: https://reviews.freebsd.org/D7223