commit:     c1863cfc833846a75595a25442d2ad191716a798
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 15:09:48 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan 12 15:11:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1863cfc

dev-libs/libtomcrypt: unbreak on Darwin

We force LIBTOOL to libtool, assuming it is a script bash can execute,
but on Darwin -- historically -- libtool is a linker helper which isn't
quite the same as GNU libtool.  The upstream buildsystem knows this, and
deals with it, but our override squashes that, of course.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild 
b/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild
index a42911b32ece..cc30adcd38f5 100644
--- a/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild
+++ b/dev-libs/libtomcrypt/libtomcrypt-1.18.2-r4.ebuild
@@ -77,7 +77,11 @@ mymake() {
        fi
 
        # Fix cross-compiling, but allow manual overrides for slibtool, which 
works.
-       [[ -z ${LIBTOOL} ]] && declare -x LIBTOOL="${BASH} 
${ESYSROOT}/usr/bin/libtool"
+       if [[ -z ${LIBTOOL} ]] ; then
+               local pfx=
+               [[ ${CHOST} == *-darwin* ]] && pfx=g  # Darwin libtool != 
glibtool
+               declare -x LIBTOOL="${BASH} ${ESYSROOT}/usr/bin/${pfx}libtool"
+       fi
 
        # IGNORE_SPEED=1 is needed to respect CFLAGS
        EXTRALIBS="${extra_libs[*]}" emake \

Reply via email to