summaryrefslogtreecommitdiff
path: root/lpcnetfreedv-libm.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-09 14:50:47 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-09 14:50:47 +0000
commit9bf7caa78b999cd1398fe9b1b938b890fc488097 (patch)
tree9cc05282d0ca279e541f3045c60bc608e640ffce /lpcnetfreedv-libm.patch
parent7a6febb8fe6846ef1a874dd543ef55d02ae853bd (diff)
automatic import of lpcnetfreedv
Diffstat (limited to 'lpcnetfreedv-libm.patch')
-rw-r--r--lpcnetfreedv-libm.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/lpcnetfreedv-libm.patch b/lpcnetfreedv-libm.patch
new file mode 100644
index 0000000..00ec6e0
--- /dev/null
+++ b/lpcnetfreedv-libm.patch
@@ -0,0 +1,17 @@
+From https://src.fedoraproject.org/rpms/lpcnetfreedv/blob/rawhide/f/lpcnetfreedv-libm.patch
+
+Index: LPCNet-0.5/src/CMakeLists.txt
+===================================================================
+--- LPCNet-0.5.orig/src/CMakeLists.txt
++++ LPCNet-0.5/src/CMakeLists.txt
+@@ -42,6 +42,10 @@ endif(LPCNET_C_PROC_FLAGS)
+
+ add_library(lpcnetfreedv SHARED ${lpcnet_freedv_srcs} ${codec2_import_srcs})
+
++if(UNIX)
++target_link_libraries(lpcnetfreedv m)
++endif()
++
+ set_target_properties(lpcnetfreedv PROPERTIES
+ PUBLIC_HEADER lpcnet_freedv.h
+ VERSION ${LPCNET_VERSION}