This isn't used in practice. The genlib tool was meant as a standalone
replacement for dlltool, but the tool never got feature parity, and
the author of the tool later went on to create llvm-dlltool (which was
command line compatible with binutils dlltool), thus making this
codepath orphaned.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/Makefile.am  | 30 +++++++++---------------------
 mingw-w64-crt/configure.ac | 13 -------------
 2 files changed, 9 insertions(+), 34 deletions(-)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 24f86c6c6..8ec13ab7f 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -25,27 +25,15 @@ AM_CXXFLAGS=@ADD_C_CXX_WARNING_FLAGS@ 
@ADD_CXX_ONLY_WARNING_FLAGS@
 CPPFLAGSARM32=-mfpu=vfpv3
 CPPFLAGS32=-m32 -masm=att
 CPPFLAGS64=-m64 -masm=att
-if WITH_GENLIB
-  AM_DLLTOOLFLAGS=-o $@
-  DLLTOOLFLAGSARM32=-a arm
-  DLLTOOLFLAGSARM64=
-  DLLTOOLFLAGS32=-a x86
-  DLLTOOLFLAGS64=-a x86_64
-  DTDEFARM32=$(GENLIB) $(DLLTOOLFLAGSARM32) $(AM_DLLTOOLFLAGS)
-  DTDEFARM64=$(GENLIB) $(DLLTOOLFLAGSARM64) $(AM_DLLTOOLFLAGS)
-  DTDEF32=$(GENLIB) $(DLLTOOLFLAGS32) $(AM_DLLTOOLFLAGS)
-  DTDEF64=$(GENLIB) $(DLLTOOLFLAGS64) $(AM_DLLTOOLFLAGS)
-else
-  AM_DLLTOOLFLAGS=-k --as=$(AS) --output-lib $@
-  DLLTOOLFLAGSARM32=-m arm
-  DLLTOOLFLAGSARM64=-m arm64
-  DLLTOOLFLAGS32=--as-flags=--32 -m i386
-  DLLTOOLFLAGS64=--as-flags=--64 -m i386:x86-64
-  DTDEFARM32=$(DLLTOOL) $(DLLTOOLFLAGSARM32) $(AM_DLLTOOLFLAGS) --input-def
-  DTDEFARM64=$(DLLTOOL) $(DLLTOOLFLAGSARM64) $(AM_DLLTOOLFLAGS) --input-def
-  DTDEF32=$(DLLTOOL) $(DLLTOOLFLAGS32) $(AM_DLLTOOLFLAGS) --input-def
-  DTDEF64=$(DLLTOOL) $(DLLTOOLFLAGS64) $(AM_DLLTOOLFLAGS) --input-def
-endif
+AM_DLLTOOLFLAGS=-k --as=$(AS) --output-lib $@
+DLLTOOLFLAGSARM32=-m arm
+DLLTOOLFLAGSARM64=-m arm64
+DLLTOOLFLAGS32=--as-flags=--32 -m i386
+DLLTOOLFLAGS64=--as-flags=--64 -m i386:x86-64
+DTDEFARM32=$(DLLTOOL) $(DLLTOOLFLAGSARM32) $(AM_DLLTOOLFLAGS) --input-def
+DTDEFARM64=$(DLLTOOL) $(DLLTOOLFLAGSARM64) $(AM_DLLTOOLFLAGS) --input-def
+DTDEF32=$(DLLTOOL) $(DLLTOOLFLAGS32) $(AM_DLLTOOLFLAGS) --input-def
+DTDEF64=$(DLLTOOL) $(DLLTOOLFLAGS64) $(AM_DLLTOOLFLAGS) --input-def
 if DLLTOOL_HAS_TEMP_PREFIX
   AM_DLLTOOLFLAGS += --temp-prefix $(basename $@)
 endif
diff --git a/mingw-w64-crt/configure.ac b/mingw-w64-crt/configure.ac
index ced7745ca..37851f605 100644
--- a/mingw-w64-crt/configure.ac
+++ b/mingw-w64-crt/configure.ac
@@ -212,19 +212,6 @@ AC_SUBST([LIBARM32SUFFIXDIR],[$libarm32suffx])
 
 # Checks for features.
 
-AC_MSG_CHECKING([whether to use genlib])
-AC_ARG_WITH([genlib],
-  [AS_HELP_STRING([--with-genlib=PATH],
-    [Whether to build import libraries via the genlib tool (default: no)])],
-  [],
-  [with_genlib=no])
-AS_CASE([$with_genlib],
-  [yes],[AC_CHECK_TOOL([GENLIB], [genlib], [:])],
-  [no],[],
-  [AS_VAR_SET([GENLIB], [$with_genlib])])
-AM_CONDITIONAL([WITH_GENLIB], [AS_VAR_TEST_SET([GENLIB])])
-AC_MSG_RESULT([$with_genlib])
-
 AC_MSG_CHECKING([whether to enable globbing])
 AC_ARG_ENABLE([wildcard],
   [AS_HELP_STRING([--enable-wildcard],
-- 
2.34.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to