Skip to content

Commit c7530f5

Browse files
xiaoxiang781216cederom
authored andcommitted
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 <xiaoxiang@xiaomi.com>
1 parent f670976 commit c7530f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interpreters/quickjs/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ if(CONFIG_INTERPRETERS_QUICKJS)
7878
-include
7979
alloca.h)
8080

81+
list(APPEND QUICKJS_FLAGS -Dmp_add=qjs_mp_add -Dmp_sub=qjs_mp_sub
82+
-Dmp_mul=qjs_mp_mul)
83+
8184
list(APPEND QUICKJS_INCDIR ${QUICKJS_DIR})
8285

8386
list(

0 commit comments

Comments
 (0)