This is an automated email from the ASF dual-hosted git repository.
xiaoxiang 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 427b107da quickjs: fix mp_mul multiple definition
427b107da is described below
commit 427b107dac6920aa3a94f233ded6f7b50dc1a024
Author: yinshengkai <[email protected]>
AuthorDate: Mon Jul 8 18:14:15 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: yinshengkai <[email protected]>
---
interpreters/quickjs/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/interpreters/quickjs/Makefile b/interpreters/quickjs/Makefile
index a0ee7516c..52d38c5c7 100644
--- a/interpreters/quickjs/Makefile
+++ b/interpreters/quickjs/Makefile
@@ -30,6 +30,7 @@ CSRCS = quickjs.c libregexp.c libbf.c libunicode.c cutils.c
VERSION=\"$(QUICKJS_VERSION)\"
+CFLAGS += -Dmp_add=qjs_mp_add -Dmp_sub=qjs_mp_sub -Dmp_mul=qjs_mp_mul
CFLAGS += -DCONFIG_VERSION=$(VERSION) -Wno-shadow
CFLAGS += -Wno-array-bounds -I$(QUICKJS_UNPACK)
CFLAGS += -D__linux__ -include alloca.h