0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-06 14:31:53 +00:00
Files
termux-packages/packages/libebur128/ebur128-CMakeLists.txt.patch
Fredrik Fornwall 817ccec622 fix(main/libebur128): Link to libm
Fixes the following build error:

>ERROR: ./lib/libebur128.so contains undefined symbols:
>     8: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND pow
>     9: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND tan
>    12: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND log
>    15: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND sin
>    16: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT   UND cos
2024-05-14 11:28:20 +02:00

22 lines
655 B
Diff

diff -u -r ../libebur128-1.2.6/ebur128/CMakeLists.txt ./ebur128/CMakeLists.txt
--- ../libebur128-1.2.6/ebur128/CMakeLists.txt 2021-02-14 14:31:05.000000000 +0000
+++ ./ebur128/CMakeLists.txt 2024-05-14 09:21:03.212349904 +0000
@@ -47,9 +47,14 @@
endif()
# Link with Math library if available
-find_library(MATH_LIBRARY m)
-if(MATH_LIBRARY)
- target_link_libraries(ebur128 ${MATH_LIBRARY})
+if(ANDROID)
+ # find_library(MATH_LIBRARY m) does not work on Android
+ target_link_libraries(ebur128 m)
+else()
+ find_library(MATH_LIBRARY m)
+ if(MATH_LIBRARY)
+ target_link_libraries(ebur128 ${MATH_LIBRARY})
+ endif()
endif()
if(ENABLE_FUZZER)