This is an automated email from the ASF dual-hosted git repository.

cederom pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new c7530f5e4 quickjs: fix mp_mul multiple definition
c7530f5e4 is described below

commit c7530f5e45ccf6bf44f86be2cc4d8c56ad2c022e
Author: Xiang Xiao <[email protected]>
AuthorDate: Sat Nov 16 12:51:58 2024 +0800

    quickjs: fix mp_mul multiple definition
    
    in function `mp_mul':
    apps/interpreters/quickjs/quickjs/libbf.c:1179: multiple definition of 
`mp_mul';
    nuttx/staging/libapps.a:apps/math/libtommath/libtommath/bn_mp_mul.c:8: 
first defined here
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 interpreters/quickjs/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/interpreters/quickjs/CMakeLists.txt 
b/interpreters/quickjs/CMakeLists.txt
index 78b32f940..eae0b3763 100644
--- a/interpreters/quickjs/CMakeLists.txt
+++ b/interpreters/quickjs/CMakeLists.txt
@@ -78,6 +78,9 @@ if(CONFIG_INTERPRETERS_QUICKJS)
     -include
     alloca.h)
 
+  list(APPEND QUICKJS_FLAGS -Dmp_add=qjs_mp_add -Dmp_sub=qjs_mp_sub
+       -Dmp_mul=qjs_mp_mul)
+
   list(APPEND QUICKJS_INCDIR ${QUICKJS_DIR})
 
   list(

Reply via email to