Author: bdrewery
Date: Wed Jun 27 21:36:49 2018
New Revision: 335746
URL: https://svnweb.freebsd.org/changeset/base/335746

Log:
  Stop building intermediate .o files.
  
  These are not used to link the final tool anymore.  At some point in the past
  the suffix rules changed to not link these in.  The original reason for this 
in
  r19176 is unclear but seems to be related to mkdep.  The .depend handling is
  still broken here as it is for all build tool patterns like this.
  
  Sponsored by: Dell EMC

Modified:
  head/bin/sh/Makefile

Modified: head/bin/sh/Makefile
==============================================================================
--- head/bin/sh/Makefile        Wed Jun 27 21:22:48 2018        (r335745)
+++ head/bin/sh/Makefile        Wed Jun 27 21:36:49 2018        (r335746)
@@ -32,8 +32,7 @@ WFORMAT=0
        ${.CURDIR:H}/test \
        ${SRCTOP}/usr.bin/printf
 
-CLEANFILES+= mknodes mknodes.o \
-       mksyntax mksyntax.o
+CLEANFILES+= mknodes mksyntax
 CLEANFILES+= ${GENSRCS} ${GENHDRS}
 
 build-tools: mknodes mksyntax
@@ -43,13 +42,7 @@ builtins.h: .NOMETA
 builtins.c builtins.h: mkbuiltins builtins.def
        sh ${.CURDIR}/mkbuiltins ${.CURDIR}
 
-# XXX this is just to stop the default .c rule being used, so that the
-# intermediate object has a fixed name.
-# XXX we have a default .c rule, but no default .o rule.
-mknodes.o mksyntax.o: ${BUILD_TOOLS_META}
-       ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET}
-mknodes: mknodes.o ${BUILD_TOOLS_META}
-mksyntax: mksyntax.o ${BUILD_TOOLS_META}
+mknodes mksyntax: ${BUILD_TOOLS_META}
 
 .ORDER: nodes.c nodes.h
 nodes.h: .NOMETA
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to