You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2023/01/29 06:33:42 UTC
[nuttx] branch master updated: arch/sim: fix undefined reference to `usrsock_event_callback'
This is an automated email from the ASF dual-hosted git repository.
archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new cc7dc89c64 arch/sim: fix undefined reference to `usrsock_event_callback'
cc7dc89c64 is described below
commit cc7dc89c64f1a3a1a00dabaa3f26a06e8304729e
Author: chao an <an...@xiaomi.com>
AuthorDate: Tue Dec 20 20:53:41 2022 +0800
arch/sim: fix undefined reference to `usrsock_event_callback'
/usr/bin/ld: sim_hostusrsock.o: in function `host_usrsock_loop':
arch/sim/src/sim/posix/sim_hostusrsock.c:514: undefined reference to `usrsock_event_callback'
Signed-off-by: chao an <an...@xiaomi.com>
---
arch/sim/src/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile
index 4f1b7a28d5..74bbe50f41 100644
--- a/arch/sim/src/Makefile
+++ b/arch/sim/src/Makefile
@@ -40,6 +40,9 @@ NUTTX = $(call CONVERT_PATH,$(TOPDIR)$(DELIM)nuttx$(EXEEXT))
LINKOBJS = sim_head$(OBJEXT)
REQUIREDOBJS = $(LINKOBJS) sim_doirq$(OBJEXT)
+ifeq ($(CONFIG_SIM_NETUSRSOCK),y)
+ REQUIREDOBJS += sim_usrsock$(OBJEXT)
+endif
ifeq ($(CONFIG_HOST_X86_64),y)
ifeq ($(CONFIG_SIM_M32),y)