From cba6bf5d954f500a921b967c1e4e3e71ecd63bef Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Sat, 24 May 2025 00:35:01 +0100 Subject: [PATCH] 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 03cb996f0f6..c2326a17f03 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.