Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 23 Jul 2020 00:44:33 -0300
From: Érico Rolim <ericonr@...root.org>
To: musl@...ts.openwall.com
Cc: Érico Rolim <ericonr@...root.org>
Subject: [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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.