[Git][ghc/ghc][wip/freebsd] configure: Implement ld override whitelist
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Tue Nov 19 01:33:48 UTC 2024
Ben Gamari pushed to branch wip/freebsd at Glasgow Haskell Compiler / GHC
Commits:
ff0b3dc2 by Ben Gamari at 2024-11-18T20:21:05-05:00
configure: Implement ld override whitelist
Bring `configure` into alignment with `ghc-toolchain`, ensuring that the
ld-override logic will only take effect on Linux and Windows.
Fixes #25501.
- - - - -
1 changed file:
- m4/find_ld.m4
Changes:
=====================================
m4/find_ld.m4
=====================================
@@ -79,13 +79,16 @@ AC_DEFUN([FIND_LD],[
dnl See #21712.
AC_CHECK_TARGET_TOOL([LD], [ld])
;;
- *)
+ *-linux|*-mingw32)
if test "x$enable_ld_override" = "xyes"; then
find_ld
else
AC_CHECK_TARGET_TOOL([LD], [ld])
fi
;;
+ *)
+ AC_CHECK_TARGET_TOOL([LD], [ld])
+ ;;
esac
CHECK_LD_COPY_BUG([$1])
])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ff0b3dc29ef6ec5c1d092dc3ca0fe420ab08f8f7
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ff0b3dc29ef6ec5c1d092dc3ca0fe420ab08f8f7
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241118/cecb5716/attachment-0001.html>
More information about the ghc-commits
mailing list