From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id A098E3858431 for ; Wed, 27 Dec 2023 06:22:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A098E3858431 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A098E3858431 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703658153; cv=none; b=IdWeBvd4JU7iCY1z7NdDHm7ZIW1kIH4/l93zSV6zpsFuVY7px0pphM0xAVCx2P5Dmb7BAR0IiDqDwetG8PpW/oflz4p37Ef3ZTCaUdxHMOOx9trArt8P3Vv0bBvuaa9RTnPOqX2FN5ZlCxfoNEVDlefJpiRKoviaOkDY7HZlJzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703658153; c=relaxed/simple; bh=yxYxRKrykr9NKwmjYBUmo8SAiCvFH4v9/eyXvOZ2KmE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=uYiE0WRX2b2Kf7/D668BiUdmgXgulpVMqNdOEu6W79IpcKiNiT7bPTLnwiUW/I3/I9wRGAPH3dEzmDXI7/Pq+Ry23v1WagP8paVpy6mxsDf5BQnD/Jvq/2Z3QSp/ajzqC7x4W1r8Ga+dCGDHaGaDFGkOOPCuqTppjjvIO8sXi7Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 3E82934067D; Wed, 27 Dec 2023 06:22:31 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] libgloss: visium: fix sbrk search path Date: Wed, 27 Dec 2023 01:22:29 -0500 Message-ID: <20231227062229.518-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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