Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2022 06:36:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 263913] bsd.sys.mk spams with "-fuse-ld= is not supported" during cleandir
Message-ID:  <bug-263913-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263913

            Bug ID: 263913
           Summary: bsd.sys.mk spams with "-fuse-ld=3D 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: bugs@FreeBSD.org
          Reporter: pstef@freebsd.org

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+=3D    ERROR-tried-to-rebuild-during-make-install
 .endif
 .endif

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263913-227>