From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 48B533858D39; Sat, 20 Jan 2024 03:25:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48B533858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705721128; bh=RmhM3epk5JcwWLGY7gHvqYONOTwlQ/v5w7B3t5UwPPg=; h=From:To:Subject:Date:From; b=M0+qa0ISI0OJXx2jqqpnM5EzysDNhihUlafQUJNOoKSsb1Prw2ljyCnnvQ8T/zIbO +9TnXnRVx2V1I1rnCcP0/U095DHwz6MjkFyKWtjpKBMEhcPyDYtWjJQ+4pH7O1RIpn OUDcCC6ocw3FZSCUoQkwqW38+NPJi7iDG458BBaQ= 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/main] libgloss: visium: fix sbrk search path X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/main X-Git-Oldrev: af075aed1d6fcd51405247654bc68365352ab367 X-Git-Newrev: 5798c3bbc783e83f6a144dd3148dd08d785dabdf Message-Id: <20240120032528.48B533858D39@sourceware.org> Date: Sat, 20 Jan 2024 03:25:28 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D5798c3bbc78= 3e83f6a144dd3148dd08d785dabdf commit 5798c3bbc783e83f6a144dd3148dd08d785dabdf 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 $@ $<