diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-26 09:19:44 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-26 09:19:44 +0000 |
commit | 2d6bee8f00c3ff1689a67fc2b60baf0503fe6999 (patch) | |
tree | 70b7cf69f3fbfe2e495ff350c843ee7bfb14f26e /share | |
parent | f6385d921b2f354d71256d1d0392122597e0fd33 (diff) | |
download | src-2d6bee8f00c3ff1689a67fc2b60baf0503fe6999.tar.gz src-2d6bee8f00c3ff1689a67fc2b60baf0503fe6999.zip |
Notes
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.sys.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 2cf95f570c6c..fd2525e56799 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -289,7 +289,8 @@ CFLAGS+= ERROR-tried-to-rebuild-during-make-install # Add -fuse-ld=${LD} if $LD is in a different directory or not called "ld". # Note: Clang 12+ will prefer --ld-path= over -fuse-ld=. .if ${COMPILER_TYPE} == "clang" -LDFLAGS+= -fuse-ld=${LD:[1]} +# Note: Clang does not like relative paths in -fuse-ld so we map ld.lld -> lld. +LDFLAGS+= -fuse-ld=${LD:[1]:S/^ld.//1W} .else # 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. |