summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
committerkx <kx@radix-linux.su>2026-10-09 18:00:15 +0300
commit065da3509019b15dd0e678072e6be629e5330bef (patch)
tree69c934c9e786ac048b4fbe8f4c4c5571661521f4 /config
parentd130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff)
downloadlibmcpu-0.4.0.tar.xz
Version 0.4.00.4.0
Diffstat (limited to 'config')
-rw-r--r--config/README.libtool78
-rw-r--r--config/patches/libtool.m4-shared.patch20
-rw-r--r--config/patches/libtool.m4.patch15
3 files changed, 113 insertions, 0 deletions
diff --git a/config/README.libtool b/config/README.libtool
new file mode 100644
index 0000000..919d0f7
--- /dev/null
+++ b/config/README.libtool
@@ -0,0 +1,78 @@
+
+/*******************************************************************
+
+ MCPU Library Versioning:
+ =======================
+
+ VERSION (major.minor.micro):
+ ---------------------------
+ - major - version changes when the library’s API was modified,
+ - minor - version changes when the library’s functionality was
+ modified in a backwards-compatible manner,
+ - micro - version changes when backwards-compatible bug fixes
+ or code changes were made.
+ NOTE:
+ ----
+ The VERSION value in this file should be equal to version
+ which declared in the configure.ac file on the following
+ function call:
+
+ AC_INIT([MCPU Library], [1.0.0], ...
+
+
+ LT_VERSION_INFO (-version-info current:revision:age):
+ ----------------------------------------------------
+ - current - version changes when the library’s interface was
+ modified (in this case the revision value is
+ reset to zero),
+ - revision - version changes when the library’s source was
+ changed,
+ - age - version increases when one new function was added
+ and decreases one old function was removed.
+
+
+ EXAMPLE 1:
+ ---------
+ 1. Begin with the previous version information: 0:0:0
+ 2. 0:0:0 becomes 0:1:0 (the library’s source was changed)
+ 3. 0:1:0 becomes 1:0:0 (the library’s interface was modified)
+ 4. 1:0:0 becomes 1:0:1 (one new function was added)
+ 5. 1:0:1 becomes 1:0:0 (one old function was removed)
+
+ EXAMPLE 2:
+ ---------
+ Let’s modify our example just a little to say that we’ve added
+ a new library interface function but haven’t removed anything.
+ Start again with the original version information of 0:0:0 and
+ follow the algorithm:
+
+ 1. Begin with the previous version information: 0:0:0
+ 2. 0:0:0 becomes 0:1:0 (the library’s source was changed)
+ 3. 0:1:0 becomes 1:0:0 (the library’s interface was modified)
+ 4. 1:0:0 becomes 1:0:1 (one new function was added)
+ 5. Not applicable (nothing was removed)
+
+ This time, we end up with a Libtool version string of 1:0:1,
+ but the resulting Linux or Solaris shared-library filename is
+ libname.so.0.1.0. Consider for a moment what it means, in the
+ face of major, minor, and patch-level values, to have a nonzero
+ age value in the Libtool version string. An age value of one
+ (as in this case) means that we are effectively still supporting
+ a Linux major value of zero, because this new version of the
+ library is 100-percent backward compatible with the previous
+ version. The minor value in the shared-library filename has been
+ incremented from zero to one to indicate that this is, in fact,
+ an updated version of the soname, libname.so.0. The patch-level
+ value remains at zero because this value indicates a bug fix to
+ a particular minor revision of an soname.
+
+
+ The function:
+
+ AC_LIBMCPU_LT_VERSION_INFO([1:0:0])
+
+ defined in acsite.m4.
+ This function produces LIBMCPU_LT_VERSION_INFO value for LDFLAGS
+ -version-info. The LT_VERSION_INFO is not equal PACKAGE_VERSION
+
+ *******************************************************************/
diff --git a/config/patches/libtool.m4-shared.patch b/config/patches/libtool.m4-shared.patch
new file mode 100644
index 0000000..9389d02
--- /dev/null
+++ b/config/patches/libtool.m4-shared.patch
@@ -0,0 +1,20 @@
+--- m4-orig/libtool.m4 2026-06-07 17:43:33.877209247 +0300
++++ m4/libtool.m4 2026-06-07 17:45:22.508205160 +0300
+@@ -4998,7 +4998,7 @@
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+- _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
++ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC -DSHARED],[m4_if([$1],[CXX],[ -DPIC -DSHARED],[])])"
+ ;;
+ esac
+
+@@ -5013,7 +5013,7 @@
+ if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+- [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
++ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC -DSHARED],[m4_if([$1],[CXX],[ -DPIC -DSHARED],[])])], [],
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
diff --git a/config/patches/libtool.m4.patch b/config/patches/libtool.m4.patch
new file mode 100644
index 0000000..eba3758
--- /dev/null
+++ b/config/patches/libtool.m4.patch
@@ -0,0 +1,15 @@
+--- m4-orig/libtool.m4 2026-06-07 17:38:21.701220990 +0300
++++ m4/libtool.m4 2026-06-07 17:39:59.924217295 +0300
+@@ -3374,12 +3374,6 @@
+ m4_require([_LT_DECL_EGREP])dnl
+ m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
+
+-AC_ARG_WITH([gnu-ld],
+- [AS_HELP_STRING([--with-gnu-ld],
+- [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+- [test no = "$withval" || with_gnu_ld=yes],
+- [with_gnu_ld=no])dnl
+-
+ ac_prog=ld
+ if test yes = "$GCC"; then
+ # Check if gcc -print-prog-name=ld gives a path.