diff options
author | OldWorldOrdr <joey.t.reinhart@gmail.com> | 2023-03-05 17:46:04 -0500 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-08-17 17:12:52 -0700 |
commit | daf27aed082a505e787236c308f3c7fff9926592 (patch) | |
tree | e331fbe0b907ae4bb80c9fa78570f39d04863b9d /configure | |
parent | 9889e988689cd9fcc08e45010fff9548aae3dbff (diff) | |
download | zlib-daf27aed082a505e787236c308f3c7fff9926592.tar.gz zlib-daf27aed082a505e787236c308f3c7fff9926592.tar.bz2 zlib-daf27aed082a505e787236c308f3c7fff9926592.zip |
Look for a cross-compile libtool first in configure.
Permit cross-compilation for Darwin.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -266,7 +266,9 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | |||
266 | SHAREDLIBV=libz.$VER$shared_ext | 266 | SHAREDLIBV=libz.$VER$shared_ext |
267 | SHAREDLIBM=libz.$VER1$shared_ext | 267 | SHAREDLIBM=libz.$VER1$shared_ext |
268 | LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} | 268 | LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} |
269 | if libtool -V 2>&1 | grep Apple > /dev/null; then | 269 | if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then |
270 | AR="${CROSS_PREFIX}libtool" | ||
271 | elif libtool -V 2>&1 | grep Apple > /dev/null; then | ||
270 | AR="libtool" | 272 | AR="libtool" |
271 | else | 273 | else |
272 | AR="/usr/bin/libtool" | 274 | AR="/usr/bin/libtool" |