--- Makefile.in_orig	2024-06-20 08:30:27.450044053 -0500
+++ Makefile.in	2024-06-20 08:37:57.410043926 -0500
@@ -629,7 +629,7 @@
 	sed/sed-execute.$(OBJEXT) sed/sed-mbcs.$(OBJEXT) \
 	sed/sed-regexp.$(OBJEXT) sed/sed-sed.$(OBJEXT) \
 	sed/sed-utils.$(OBJEXT)
-sed_sed_OBJECTS = $(am_sed_sed_OBJECTS)
+sed_sed_OBJECTS = $(am_sed_sed_OBJECTS) lib/getopt.o lib/getopt1.o
 sed_sed_LINK = $(CCLD) $(sed_sed_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
 	$(LDFLAGS) -o $@
 testsuite_get_mb_cur_max_SOURCES = testsuite/get-mb-cur-max.c
@@ -1193,6 +1193,8 @@
 ERRNO_H = @ERRNO_H@
 ETAGS = @ETAGS@
 EXEEXT = @EXEEXT@
+GETOPT_CDEFS_H = lib/getopt-cdefs.h
+GETOPT_H = lib/getopt.h
 GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
 GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@
 GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@
@@ -2375,7 +2377,7 @@
 dvidir = @dvidir@
 exec_prefix = @exec_prefix@
 gl_LIBOBJDEPS = @gl_LIBOBJDEPS@
-gl_LIBOBJS = @gl_LIBOBJS@
+gl_LIBOBJS = @gl_LIBOBJS@ lib/getopt.o lib/getopt1.o
 gl_LTLIBOBJS = @gl_LTLIBOBJS@
 gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@
 gltests_LIBOBJS = @gltests_LIBOBJS@
@@ -2481,6 +2483,8 @@
 	lib/windows-initguard.h lib/windows-recmutex.h \
 	lib/windows-initguard.h lib/windows-rwlock.h lib/xalloc.h \
 	lib/xalloc.h lib/xalloc-oversized.h doc/dummy-man $(T) \
+	lib/getopt-core.h lib/getopt-ext.h lib/getopt-pfx-core.h \
+	lib/getopt-pfx-ext.h lib/getopt.c  lib/getopt1.c lib/getopt_int.h \
 	testsuite/Coreutils.pm testsuite/CuSkip.pm \
 	testsuite/CuTmpdir.pm testsuite/init.sh init.cfg \
 	testsuite/envvar-check testsuite/8bit.good testsuite/8bit.inp \
@@ -2496,6 +2500,7 @@
 MOSTLYCLEANDIRS = lib/selinux lib/sys lib/sys
 MOSTLYCLEANFILES = lib/core lib/*.stackdump lib/alloca.h \
 	lib/alloca.h-t lib/assert.h lib/assert.h-t lib/ctype.h \
+	lib/getopt.h lib/getopt.h-t lib/getopt-cdefs.h lib/getopt-cdefs.h-t \
 	lib/ctype.h-t lib/errno.h lib/errno.h-t lib/fcntl.h \
 	lib/fcntl.h-t lib/malloc/dynarray.gl.h \
 	lib/malloc/dynarray.gl.h-t lib/malloc/dynarray-skeleton.gl.h \
@@ -2581,7 +2586,7 @@
 	lib/malloc/dynarray-skeleton.c lib/malloc.c lib/malloc.c \
 	lib/lc-charset-dispatch.c lib/mbtowc-lock.c lib/realloc.c \
 	lib/realloc.c lib/regcomp.c lib/regex_internal.c lib/regexec.c \
-	lib/stat-w32.c
+	lib/stat-w32.c lib/getopt.c lib/getopt1.c
 
 # Use this preprocessor expression to decide whether #include_next works.
 # Do not rely on a 'configure'-time test for this, since the expression
