0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
termux-packages/packages/radare2/libr-reg-Makefile.patch
Fredrik Fornwall 6011ee85be fix(main/radare2): Fix undefined symbols
Fix the following build error:

> ERROR: ./lib/libr_crypto.so.5.9.0 contains undefined symbols:
>    20: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log2
> ERROR: ./lib/libr_esil.so.5.9.0 contains undefined symbols:
>    37: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND feclearexcept
>    38: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND fetestexcept
> ERROR: ./lib/libr_lang.so.5.9.0 contains undefined symbols:
>   157: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND pow
>   158: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND fmod
>   161: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND hypot
>   162: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND fabs
>   163: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND acos
>   164: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND asin
>   165: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND atan
>   166: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND atan2
>   167: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND cos
>   168: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND exp
>   169: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log
>   170: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND sin
>   171: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND tan
>   172: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND trunc
>   173: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND cosh
>   174: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND sinh
>   175: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND tanh
>   176: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND acosh
>   177: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND asinh
>   178: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND atanh
>   179: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND expm1
>   180: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log1p
>   181: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log2
>   182: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log10
>   183: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND cbrt
> ERROR: ./lib/libr_reg.so.5.9.0 contains undefined symbols:
>    34: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND fmaxl
2024-05-15 10:48:56 +02:00

12 lines
336 B
Diff

diff -u -r ../radare2-5.9.0/libr/reg/Makefile ./libr/reg/Makefile
--- ../radare2-5.9.0/libr/reg/Makefile 2024-03-31 15:01:15.000000000 +0000
+++ ./libr/reg/Makefile 2024-05-15 08:27:11.537769784 +0000
@@ -3,6 +3,7 @@
NAME=r_reg
R2DEPS=r_util
OBJS=reg.o arena.o rvalue.o rcond.o double.o profile.o
+LINK+=-lm
include ../rules.mk