The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=cba6bf5d954f500a921b967c1e4e3e71ecd63bef
commit cba6bf5d954f500a921b967c1e4e3e71ecd63bef Author: Brooks Davis <bro...@freebsd.org> AuthorDate: 2025-05-23 23:35:01 +0000 Commit: Brooks Davis <bro...@freebsd.org> CommitDate: 2025-05-23 23:37:50 +0000 share/mk/bsd.README: refer to the linker, not the loader We're invoking the linker to create programs or libraries from one or more object files not the loader to load them in to memory. Reviewed by: jhb, emaste Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D50481 --- share/mk/bsd.README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.README b/share/mk/bsd.README index 03cb996f0f67..c2326a17f03c 100644 --- a/share/mk/bsd.README +++ b/share/mk/bsd.README @@ -175,7 +175,7 @@ DPADD Additional dependencies. Usually used for libraries. Dependencies on shared libraries should be only on the library version numbers. -LDADD Additional loader objects. Usually used to add libraries. +LDADD Additional linker objects. Usually used to add libraries. For example, to load with the compatibility and utility libraries, use: @@ -184,8 +184,8 @@ LDADD Additional loader objects. Usually used to add libraries. LDADD.${.TARGET:T} Loader objects dependent on output file name. -LDFLAGS Additional loader flags. Passed to the loader via CC, - since that's used to link programs as well, so loader +LDFLAGS Additional linker flags. Passed to the linker via CC, + since that's used to link programs as well, so linker specific flags need to be prefixed with -Wl, to work. LDFLAGS.${.TARGET:T} Flags dependent on output file name.