mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] Makefile: fix src/api compilation.
@ 2020-07-23  3:44 Érico Rolim
  2020-07-24 14:33 ` Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: Érico Rolim @ 2020-07-23  3:44 UTC (permalink / raw)
  To: musl; +Cc: Érico Rolim

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-24 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23  3:44 [musl] [PATCH] Makefile: fix src/api compilation Érico Rolim
2020-07-24 14:33 ` Szabolcs Nagy
2020-07-24 18:23   ` Érico Nogueira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).