[PATCH] libgloss: csky: clean up unused m68k logic

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
It looks like csky was created by copying & pasting the m68k port,
but m68k-specific stuff was left over related to target selection.
The makefile doesn't do anything with it, so punt it all to make
the file much simpler.
---
 libgloss/csky/Makefile.in  |    6 +-
 libgloss/csky/configure    | 1033 +-----------------------------------
 libgloss/csky/configure.ac |   21 -
 3 files changed, 2 insertions(+), 1058 deletions(-)

diff --git a/libgloss/csky/Makefile.in b/libgloss/csky/Makefile.in
index b0af7d653891..911dd40add39 100644
--- a/libgloss/csky/Makefile.in
+++ b/libgloss/csky/Makefile.in
@@ -61,8 +61,6 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
 	then echo ${objroot}/../binutils/objcopy ; \
 	else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
 
-DO = @DO@
-
 CRT0=crt0.S
 
 #
@@ -101,12 +99,10 @@ crt0.o: $(CRT0)
 	$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) -c $< -o $@
 
 .PHONY: install info dvi doc install-info clean-info
-install:: $(DO:%=install_%) crt0.o
+install:: install_hosted crt0.o
 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
 	$(INSTALL_PROGRAM) crt0.o $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(crt0.o)
 
-$(DO:%=install_%): install_hosted
-
 .PHONY:install_hosted
 install_hosted::
 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
diff --git a/libgloss/csky/configure.ac b/libgloss/csky/configure.ac
index bb9a9195df97..ad29287ecf64 100644
--- a/libgloss/csky/configure.ac
+++ b/libgloss/csky/configure.ac
@@ -30,27 +30,6 @@ AC_SUBST(LD)
 AC_PROG_RANLIB
 LIB_AM_PROG_AS
 
-AC_MSG_CHECKING([target cpu family])
-DO=csky
-dnl Temporarily modify LDFLAGS so that link tests will succeed without
-dnl a C library.  Note that we may not have a C librabry yet and that
-dnl autoconf automatically adds script to check whether we can create
-dnl an executable or not.
-dnl
-saved_LDFLAGS="$LDFLAGS"
-LDFLAGS="-nostdlib -e main"
-AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__
-		#error we are not coldfire
-		#endif])],
-	       DO="cf",)
-AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__
-		#error we are not fido
-		#endif])],
-	       DO="fido",)
-LDFLAGS=$saved_LDFLAGS
-AC_MSG_RESULT($DO)
-AC_SUBST(DO)
-     
 host_makefile_frag=${srcdir}/../config/default.mh
 target_makefile_frag=${srcdir}/../config/default.mt
 
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.