2020-08-03 04:40:08 +00:00
|
|
|
commit 1f6bc557ec5c90eced96ae81ff1d443ee5770993
|
|
|
|
Author: Heiko Lewin <heiko.lewin@worldiety.de>
|
|
|
|
Date: Fri May 22 03:32:33 2020 +0200
|
|
|
|
|
|
|
|
configure: use LIBTOOL variable for Darwin builds
|
|
|
|
|
2022-02-11 02:00:59 +00:00
|
|
|
---
|
|
|
|
configure | 10 ++++++++--
|
|
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
|
2020-08-03 04:40:08 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2022-02-11 02:00:59 +00:00
|
|
|
@@ -66,6 +66,12 @@
|
2020-08-03 04:40:08 +00:00
|
|
|
else
|
|
|
|
NM=${NM-"nm"}
|
|
|
|
fi
|
|
|
|
+if "${CROSS_PREFIX}libtool" --version >/dev/null 2>/dev/null || test $? -lt 126; then
|
|
|
|
+ LIBTOOL=${LIBTOOL-"${CROSS_PREFIX}libtool"}
|
|
|
|
+ test -n "${CROSS_PREFIX}" && echo Using ${LIBTOOL} | tee -a configure.log
|
|
|
|
+else
|
|
|
|
+ LIBTOOL=${LIBTOOL-"libtool"}
|
|
|
|
+fi
|
|
|
|
|
|
|
|
# set defaults before processing command line options
|
|
|
|
LDCONFIG=${LDCONFIG-"ldconfig"}
|
2022-04-21 03:30:55 +00:00
|
|
|
@@ -252,8 +258,8 @@
|
2020-08-03 04:40:08 +00:00
|
|
|
SHAREDLIBV=libz.$VER$shared_ext
|
|
|
|
SHAREDLIBM=libz.$VER1$shared_ext
|
|
|
|
LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"}
|
|
|
|
- if libtool -V 2>&1 | grep Apple > /dev/null; then
|
|
|
|
- AR="libtool"
|
|
|
|
+ if ${LIBTOOL} -V 2>&1 | grep Apple > /dev/null; then
|
|
|
|
+ AR="${LIBTOOL}"
|
|
|
|
else
|
|
|
|
AR="/usr/bin/libtool"
|
|
|
|
fi
|