From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id D57133858CDB; Tue, 2 Jan 2024 04:37:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D57133858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704170258; bh=4aIjx/JfRmAVKsci4Aimq8APAgI8UOMykkidrYnuJMo=; h=From:To:Subject:Date:From; b=ngk2hKRX2bmbga+vnNRZpOG6EpKytT8I9nX5AAcz12pvHbu/9D265rVzEODuKgThV 5/J1i9u7AWkzx/3IyeP4dtKn+PiQU5P6f3Wv3CIi1zhyjUqhbH/G84fP89nEy7306W iLh41gCDG6bMmhM70oGxi+p0Fhd+rZRLbQrjk7pg= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/users/vapier/wip] libgloss: visium: fix sbrk search path X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/users/vapier/wip X-Git-Oldrev: fdbef758375eabb6381fd45b6a987fdec4ad028c X-Git-Newrev: 7eb6429d4d0b57994d44cce8737131ca6b9ea68d Message-Id: <20240102043738.D57133858CDB@sourceware.org> Date: Tue, 2 Jan 2024 04:37:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D7eb6429d4d0= b57994d44cce8737131ca6b9ea68d commit 7eb6429d4d0b57994d44cce8737131ca6b9ea68d Author: Mike Frysinger Date: Wed Dec 27 01:20:50 2023 -0500 libgloss: visium: fix sbrk search path =20 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. Diff: --- libgloss/visium/Makefile.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgloss/visium/Makefile.in b/libgloss/visium/Makefile.in index 0e1789a26..bc18b2951 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 $@ $< =20 +sbrk.o: $(srcdir)/sbrk.c + ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $< + $(OBJS): %.o: ../%.c ${CC} ${CFLAGS_FOR_TARGET} ${CFLAGS} -c -o $@ $<