From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27684 invoked from network); 23 Jul 2020 03:45:02 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Jul 2020 03:45:02 -0000 Received: (qmail 15479 invoked by uid 550); 23 Jul 2020 03:44:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 15419 invoked from network); 23 Jul 2020 03:44:57 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org From: =?UTF-8?q?=C3=89rico=20Rolim?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1595475884; bh=TsOxUSurnnNu8SddCDXoIcxg1qeDgIl+Hhqx4MXwwj8=; h=From:To:Cc:Subject:Date; b=YXEgCAkEjzDVpn/Jsdg9+kgz4XInx9BcD2bsn0wPHMyNU6YV1D1SRPt7AaKw7Fa1F SbdwUUsq5t+URHWEYxEdhbgV8kcA4ZVLZ09Ra2/8vo/ErhnkPWYRuNStPMjynZ7UIL U18fYLzJKJRDgHNvLYgavqjYtM/tOP5n7Vl12r9R/pFkm1U1LNNYzfy0CRqdBEHypW IoBcX98BhVIzlSG0QnYEvqGtJPLJPvZ3QPrzZKjtXB5WcZC6ionlBOBNn1aBBDF5ie SfyoXXsPIRwgFLxLMttOzOHcdvag7TB8c4k00PFn75b9Kl2PY/akfVNQx78db6Ilkw Tzb337mQ/25Zg== To: musl@lists.openwall.com Cc: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Thu, 23 Jul 2020 00:44:33 -0300 Message-Id: <20200723034433.24004-1-ericonr@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] Makefile: fix src/api compilation. Adding all .o files in src/api to the api/main.OBJ variable led to them being included twice when linking api/main.exe, which failed with a double definition of the main() function. This can be tested by removing the failing definitions from unistdc.c and running make. --- This is a patch for libc-test. Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 86b6ff5..683c850 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,6 @@ $(B)/common/mtest.o: src/common/mtest.h $(math.OBJS): src/common/mtest.h $(B)/api/main.exe: $(api.OBJS) -api/main.OBJS:=$(api.OBJS) $(api.OBJS):$(B)/common/options.h $(api.OBJS):CFLAGS+=-pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -- 2.27.0