git: 936d52c10e2f - stable/13 - Hide -fuse-ld= not supported message for non-build targets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 May 2022 00:28:52 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=936d52c10e2fa6d2c106b51842986dce3424be6e commit 936d52c10e2fa6d2c106b51842986dce3424be6e Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-05-12 14:49:30 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-05-26 00:28:21 +0000 Hide -fuse-ld= not supported message for non-build targets In some build configurations a warning about (an absolute path for) -fuse-ld= not being supported by GCC was emitted during cleandir or other non-build make targets. For these non-build targets COMPILER_TYPE is set to "none" but we treated the .else case for COMPILER_TYPE==clang as implying gcc. Check instead for COMPILER_TYPE==gcc. PR: 263913 Reported by: pstef Reviewed by: pstef MFC after: 2 weeks Sponsored by: The FreeBSD Foundation (cherry picked from commit 4143e4fb197bec8cad4cdf129c86d45b0e942fd9) --- share/mk/bsd.sys.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index fefad7996eef..ae4255f8bace 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -327,7 +327,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