[Bug 263913] bsd.sys.mk spams with "-fuse-ld= is not supported" during cleandir
Date: Wed, 11 May 2022 17:13:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263913 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+= --ld-path=${LD:[1]:S/^ld.//1W} .else LDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W} .endif -.else +.elif ${COMPILER_TYPE} == "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 -- You are receiving this mail because: You are the assignee for the bug.