https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263913

            Bug ID: 263913
           Summary: bsd.sys.mk spams with "-fuse-ld= is not supported"
                    during cleandir
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: [email protected]
          Reporter: [email protected]

I silenced it with this:

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index fefad7996ee..7a1e3547244 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -317,6 +317,8 @@ CFLAGS+=    ERROR-tried-to-rebuild-during-make-install
 .endif
 .endif

+# If COMPILER_TYPE == "none", we are doing a make obj/cleandir/cleanobj
+.if ${COMPILER_TYPE} != "none"
 # Please keep this if in sync with kern.mk
 .if ${LD} != "ld" && (${CC:[1]:H} != ${LD:[1]:H} || ${LD:[1]:T} != "ld")
 # Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld".
@@ -337,6 +339,7 @@ LDFLAGS+=   -fuse-ld=${LD:[1]:S/^ld.//1W}
 .endif
 .endif
 .endif
+.endif

 # Tell bmake not to mistake standard targets for things to be searched for
 # or expect to ever be up-to-date.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to