git: 4143e4fb197b - main - Hide -fuse-ld= not supported message for non-build targets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 May 2022 14:59:19 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=4143e4fb197bec8cad4cdf129c86d45b0e942fd9
commit 4143e4fb197bec8cad4cdf129c86d45b0e942fd9
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-05-12 14:49:30 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-05-12 14:59:06 +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
---
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 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