diff options
author | Sergey Vinokurov <serg.foo@gmail.com> | 2022-01-05 01:33:06 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-18 16:15:12 -0500 |
commit | 21510698817fbe7254112b5967854cad28a612bf (patch) | |
tree | 6e520363978d7f20f5fc3ca3ab1c3d3a83693cb2 /m4/find_ld.m4 | |
parent | 01254ceb5173ddb179c6ead0d6b60f7ac5a86e83 (diff) | |
download | haskell-21510698817fbe7254112b5967854cad28a612bf.tar.gz |
Improve detection of lld linker
Newer lld versions may include vendor info in --version output and
thus the version string may not start with ‘LLD’.
Fixes #20907
Diffstat (limited to 'm4/find_ld.m4')
-rw-r--r-- | m4/find_ld.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/find_ld.m4 b/m4/find_ld.m4 index a6b5c9c598..3d4443be54 100644 --- a/m4/find_ld.m4 +++ b/m4/find_ld.m4 @@ -41,6 +41,8 @@ AC_DEFUN([FIND_LD],[ ;; "LLD"*) FP_CC_LINKER_FLAG_TRY(lld, $2) ;; + *" LLD "*) + FP_CC_LINKER_FLAG_TRY(lld, $2) ;; *) AC_MSG_NOTICE([unknown linker version $out]) ;; esac if test "z$$2" = "z"; then |