[Git][ghc/ghc][wip/T24211] distrib: Rediscover otool and install_name_tool on Darwin

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Tue Nov 21 21:55:00 UTC 2023



Ben Gamari pushed to branch wip/T24211 at Glasgow Haskell Compiler / GHC


Commits:
dec871e9 by Ben Gamari at 2023-11-21T16:24:41-05:00
distrib: Rediscover otool and install_name_tool on Darwin

In the bindist configure script we must rediscover the `otool` and
`install_name_tool`s since they may be different from the build
environment.

Fixes #24211.

- - - - -


1 changed file:

- distrib/configure.ac.in


Changes:

=====================================
distrib/configure.ac.in
=====================================
@@ -206,6 +206,18 @@ dnl Identify C++ standard library flavour and location
 FP_FIND_CXX_STD_LIB
 AC_CONFIG_FILES([mk/system-cxx-std-lib-1.0.conf])
 
+dnl ** Which otool to use on macOS
+dnl --------------------------------------------------------------
+AC_CHECK_TARGET_TOOL([OTOOL], [otool])
+OtoolCmd="$OTOOL"
+AC_SUBST(OtoolCmd)
+
+dnl ** Which install_name_tool to use on macOS
+dnl --------------------------------------------------------------
+AC_CHECK_TARGET_TOOL([INSTALL_NAME_TOOL], [install_name_tool])
+InstallNameToolCmd="$INSTALL_NAME_TOOL"
+AC_SUBST(InstallNameToolCmd)
+
 # Check that we have the same emsdk version as the one we were built with.
 ConfiguredEmsdkVersion=@ConfiguredEmsdkVersion@
 EMSDK_VERSION("", "", ${ConfiguredEmsdkVersion})



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dec871e9140083e927df07f53dfbdc2164ee59b4

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/dec871e9140083e927df07f53dfbdc2164ee59b4
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/20231121/7b5aa529/attachment.html>


More information about the ghc-commits mailing list