[Git][ghc/ghc][master] configure: Implement ld override whitelist

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Dec 11 09:29:21 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
99225996 by Ben Gamari at 2024-12-11T04:28:48-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/992259962191b0b774dfeeabb46729376c7fe7cf

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/992259962191b0b774dfeeabb46729376c7fe7cf
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/20241211/eb98d399/attachment.html>


More information about the ghc-commits mailing list