diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2023-08-18 16:17:04 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2023-08-18 16:17:33 -0700 |
commit | 0f68a0d89d8dd4edb444cc1a4219a44c17524820 (patch) | |
tree | 6a3d9edf68c600768ca56e98f44e7664797f7b33 | |
parent | 5dc7681ff1f78536386fb4fc7bd0edc7a83c9406 (diff) | |
download | zlib-0f68a0d89d8dd4edb444cc1a4219a44c17524820.tar.gz zlib-0f68a0d89d8dd4edb444cc1a4219a44c17524820.tar.bz2 zlib-0f68a0d89d8dd4edb444cc1a4219a44c17524820.zip |
Limit the length of Darwin shared library version number.
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ STATICLIB=libz.a | |||
44 | 44 | ||
45 | # extract zlib version numbers from zlib.h | 45 | # extract zlib version numbers from zlib.h |
46 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h` | 46 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < ${SRCDIR}zlib.h` |
47 | VERN=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\(\\.[0-9]\{1,\}\)\{1,\}\).*/\1/p'` | 47 | VER3=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\(\\.[0-9]\{1,\}\)\{1,2\}\).*/\1/p'` |
48 | VER1=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\)\\..*/\1/p'` | 48 | VER1=`echo ${VER}|sed -n -e 's/\([0-9]\{1,\}\)\\..*/\1/p'` |
49 | 49 | ||
50 | # establish commands for library building | 50 | # establish commands for library building |
@@ -264,7 +264,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | |||
264 | SHAREDLIB=libz$shared_ext | 264 | SHAREDLIB=libz$shared_ext |
265 | SHAREDLIBV=libz.$VER$shared_ext | 265 | SHAREDLIBV=libz.$VER$shared_ext |
266 | SHAREDLIBM=libz.$VER1$shared_ext | 266 | SHAREDLIBM=libz.$VER1$shared_ext |
267 | LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VERN"} | 267 | LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} |
268 | if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then | 268 | if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then |
269 | AR="${CROSS_PREFIX}libtool" | 269 | AR="${CROSS_PREFIX}libtool" |
270 | elif libtool -V 2>&1 | grep Apple > /dev/null; then | 270 | elif libtool -V 2>&1 | grep Apple > /dev/null; then |