diff options
| author | kx <kx@radix-linux.su> | 2026-10-11 16:16:24 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-11 16:16:24 +0300 |
| commit | d2ab5aae7d76745e44e8d60ea2d9f837cd151839 (patch) | |
| tree | 638157eeb76040e9777027068a464322be8f626b | |
| parent | b2218c0d524a7b59f00ecdabda0d959483938c66 (diff) | |
| download | libmpu-d2ab5aae7d76745e44e8d60ea2d9f837cd151839.tar.xz | |
Updated Libtool shared-library versioning. Fixed warning related to pointer to int cast
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | acsite.m4 | 17 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | libmpu.m4 | 2 | ||||
| -rw-r--r-- | mpu-config.in | 4 | ||||
| -rw-r--r-- | mpu.pc.in | 1 | ||||
| -rw-r--r-- | mpu/mpu-real.c | 2 |
7 files changed, 21 insertions, 14 deletions
@@ -1,3 +1,10 @@ +2026-10-11 Andrew V. Kosteltsev <kx@radix-linux.su> + + * Updated Libtool shared-library versioning and external application + integration support. + * mpu/mpu-real.c: Fixed warning related to pointer to int cast. + + 2026-09-19 Andrew V. Kosteltsev <kx@radix-linux.su> * mpu/mpu-ioreal.c: Fixed: ascii_to_real() unexpected return code. @@ -1201,20 +1201,21 @@ AC_DEFUN([AC_LIBMPU_LT_VERSION_INFO], # # Made LT_VERSION_INFO so that library version matches PACKAGE_VERSION: # -major=`echo ${PACKAGE_VERSION} | cut -f1 -d'.'` -minor=`echo ${PACKAGE_VERSION} | cut -f2 -d'.'` -patch=`echo ${PACKAGE_VERSION} | cut -f3 -d'.'` +# +# LT_VERSION_INFO="current:revision:age" +# +info="$1" -current=$( expr ${major} + ${patch} ) -revision=${minor} -age=${patch} +current=`echo ${info} | cut -f1 -d':'` +revision=`echo ${info} | cut -f2 -d':'` +age=`echo ${info} | cut -f3 -d':'` -ac_cv_libmpu_lt_release="${major}.${minor}" +ac_cv_libmpu_lt_release="${current}.${revision}" ac_cv_libmpu_lt_current="${current}" ac_cv_libmpu_lt_revision="${revision}" ac_cv_libmpu_lt_age="${age}" -ac_cv_libmpu_lt_version_info="${major}:${age}:${revision}" +ac_cv_libmpu_lt_version_info="${current}:${revision}:${age}" AC_SUBST(LIBMPU_LT_RELEASE, $ac_cv_libmpu_lt_release) AC_SUBST(LIBMPU_LT_VERSION_INFO, $ac_cv_libmpu_lt_version_info) diff --git a/configure.ac b/configure.ac index b471182..820f564 100644 --- a/configure.ac +++ b/configure.ac @@ -112,7 +112,7 @@ LT_INIT AC_SUBST([LIBTOOL_DEPS]) AC_MSG_CFG_PART(Test for libtool VERSION Information) -AC_LIBMPU_LT_VERSION_INFO +AC_LIBMPU_LT_VERSION_INFO([1:0:0]) AC_MSG_CFG_PART(Test for LD_LIBRARY_PATH Environment Variable) AC_LD_LIBRARY_PATH @@ -82,7 +82,7 @@ dnl ============================================================ AC_MSG_CHECKING(for libmpu) _AC_LIBMPU_VERBOSE([]) AC_ARG_WITH(libmpu,dnl -[ --with-libmpu[=ARG] Build with libmpu Library (default=]ifelse([$2],,yes,$2)[)],dnl +[ --with-libmpu[=yes|no] Build with libmpu Library (default=]ifelse([$2],,yes,$2)[)],dnl ,dnl with_libmpu="ifelse([$2],,yes,$2)" )dnl diff --git a/mpu-config.in b/mpu-config.in index b53a92b..3d5ce3d 100644 --- a/mpu-config.in +++ b/mpu-config.in @@ -17,8 +17,8 @@ cat <<EOF Usage : mpu-config [OPTIONS] Options : - [--prefix[=DIR]] - [--exec-prefix[=DIR]] + [--prefix] + [--exec-prefix] [--version] [--real-io-data-limit] [--math-fn-data-limit] @@ -8,7 +8,6 @@ math_fn_data_limit=@LIBMPU_REAL_MATH_F_LIMIT@ real_max_width=@LIBMPU_REAL_MAX_WIDTH@ Name: mpu -URL: https://radix-linux.su/ Description: C library for multiple-precision computations Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lmpu diff --git a/mpu/mpu-real.c b/mpu/mpu-real.c index bfd0553..30b84e0 100644 --- a/mpu/mpu-real.c +++ b/mpu/mpu-real.c @@ -15539,7 +15539,7 @@ void ei_sqrt( EMUSHORT *eic, EMUSHORT *eia, int nb ) { /* NOTE: x86_64: sizeof( long ) == 8! */ - k |= (int)(__mpu_uint64_t) + k |= (int)(unsigned long) #if MPU_WORD_ORDER_BIG_ENDIAN == 1 p++; /* toward lgw */ #else |
