From f0ece1487a604aa5c812a08a99ac7f550ad3bcdf Mon Sep 17 00:00:00 2001 From: Dev <9416650+aoinoikaz@users.noreply.github.com> Date: Tue, 3 Nov 2026 15:01:04 -0500 Subject: [PATCH] build: configure-lib: List lib/windows/lseek.c once. libmes_SOURCES takes lib/windows/lseek.c for mes_kernel=windows, as it takes lib/linux/lseek.c and lib/stub/lseek.c for linux and gnu, and the Windows block of libc_SOURCES named it a second time. libc, libc+tcc and libc+gnu, which all start from libmes_SOURCES, therefore defined lseek and _lseek twice. MesCC emits both, and hex2 resolves a label defined twice to the later one, so the libraries MesCC builds were unaffected; a compiler that rejects a redefinition, as TinyCC does, cannot build a library concatenated from the list. * build-aux/configure-lib.sh (libc_SOURCES): Do not list lib/windows/lseek.c for mes_kernel=windows a second time. --- build-aux/configure-lib.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/build-aux/configure-lib.sh b/build-aux/configure-lib.sh index c46cfb59..27547c5d 100644 --- a/build-aux/configure-lib.sh +++ b/build-aux/configure-lib.sh @@ -303,7 +303,6 @@ lib/windows/$mes_cpu-mes-$compiler/filetime.c lib/windows/gettimeofday.c lib/windows/ioctl3.c lib/stub/link.c -lib/windows/lseek.c lib/stub/lstat.c lib/windows/_open3.c lib/linux/malloc.c