libgloss: visium: fix sbrk search path

Message ID
State New
Series libgloss: visium: fix sbrk search path |

Commit Message

Mike Frysinger Dec. 27, 2023, 6:22 a.m. UTC
  The code was loading the common ../sbrk.c file rather than the visium
specific sbrk.c due to VPATH setup.  Add an explicit rule for this one
file so we make sure the correct one is used.
 libgloss/visium/ | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/libgloss/visium/ b/libgloss/visium/
index 0e1789a2635c..bc18b2951edb 100644
--- a/libgloss/visium/
+++ b/libgloss/visium/
@@ -97,6 +97,9 @@  sim-syscalls.o: syscalls.c syscall.h io.h
 debug-syscalls.o: syscalls.c syscall.h io.h
 	${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<
+sbrk.o: $(srcdir)/sbrk.c
+	${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<
 $(OBJS): %.o: ../%.c
 	${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<