From 3c61c60b90db1b6a77b3804784430fcd57b447b6 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Fri, 3 Nov 2023 16:46:07 +0000 Subject: [PATCH] build: Add an old hack to remove bind_at_load from libtool. Similar to a98356fee8a44d7d1cb37f22c876fff8f244365e. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 7f235a92707..5d26f49e8be 100644 --- a/configure.ac +++ b/configure.ac @@ -1969,6 +1969,17 @@ case ${OS} in ;; esac +dnl An old hack similar to a98356fee to remove hard-coded +dnl bind_at_load flag from libtool +case $host in + *darwin*) + AC_MSG_RESULT([Removing -Wl,bind_at_load from libtool.]) + sed < libtool > libtool-2 '/bind_at_load/d' + mv libtool-2 libtool + chmod 755 libtool + ;; +esac + echo echo "Options used to compile and link:" echo " external signer = $use_external_signer"