public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libgloss: visium: fix sbrk search path
@ 2023-12-27  6:22 Mike Frysinger
  2023-12-27  6:23 ` [PATCH] libgloss: merge visium into top-level Makefile Mike Frysinger
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2023-12-27  6:22 UTC (permalink / raw)
  To: newlib

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/Makefile.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libgloss/visium/Makefile.in b/libgloss/visium/Makefile.in
index 0e1789a2635c..bc18b2951edb 100644
--- a/libgloss/visium/Makefile.in
+++ b/libgloss/visium/Makefile.in
@@ -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 $@ $<
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-27  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27  6:22 [PATCH] libgloss: visium: fix sbrk search path Mike Frysinger
2023-12-27  6:23 ` [PATCH] libgloss: merge visium into top-level Makefile Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).