Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2022 17:13:47 +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-9M0mArVik9@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263913-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263913-227@https.bugs.freebsd.org/bugzilla/>

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

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emaste@freebsd.org

--- Comment #2 from Ed Maste <emaste@freebsd.org> ---
I had a similar sort of situation in PR260099, but agree checking COMPILER_=
TYPE
is probably the right thing here.

This might be a bit simpler:

emaste@nazar:~/src/freebsd-git/main $ git diff
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index f09987ecd962..221e8b028479 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -326,7 +326,7 @@ LDFLAGS+=3D   --ld-path=3D${LD:[1]:S/^ld.//1W}
 .else
 LDFLAGS+=3D      -fuse-ld=3D${LD:[1]:S/^ld.//1W}
 .endif
-.else
+.elif ${COMPILER_TYPE} =3D=3D "gcc"
 # GCC does not support an absolute path for -fuse-ld so we just print this
 # warning instead and let the user add the required symlinks.
 # However, we can avoid this warning if -B is set appropriately (e.g. for

--=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-9M0mArVik9>