Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
author: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 committer: kx <kx@radix-linux.su> 2024-12-20 16:11:07 +0300 commit: 868b2b66b564b5c00e3a74d10be45db7151627ac parent: cce2ae8d3312493b7653358bb4af201d3271377b
Commit Summary:
Version 1.0.14
Diffstat:
3 files changed, 33 insertions, 8 deletions
diff --git a/config/patches/libtool.m4-shared.patch b/config/patches/libtool.m4-shared.patch
new file mode 100644
index 0000000..6a28189
--- /dev/null
+++ b/config/patches/libtool.m4-shared.patch
@@ -0,0 +1,21 @@
+diff -bu -Nr m4-orig/libtool.m4 m4/libtool.m4
+--- m4-orig/libtool.m4	2019-12-04 10:47:40.522710321 +0300
++++ m4/libtool.m4	2019-12-04 10:48:33.221155503 +0300
+@@ -4842,7 +4842,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
+ 
+@@ -4857,7 +4857,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..3f05cdd
--- /dev/null
+++ b/config/patches/libtool.m4.patch
@@ -0,0 +1,16 @@
+diff -bu -Nr m4-orig/libtool.m4 m4/libtool.m4
+--- m4-orig/libtool.m4	2017-10-29 01:10:21.831069859 +0300
++++ m4/libtool.m4	2017-10-29 01:10:50.472068853 +0300
+@@ -3245,12 +3245,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.