Print this page
8571 Makefile.master should not trust $PATH

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile.master
          +++ new/usr/src/Makefile.master
↓ open down ↓ 126 lines elided ↑ open up ↑
 127  127  GCCLIBDIR64=    $(GCC_ROOT)/lib/$(MACH64)
 128  128  
 129  129  DOCBOOK_XSL_ROOT=       /usr/share/sgml/docbook/xsl-stylesheets
 130  130  
 131  131  RPCGEN=         /usr/bin/rpcgen
 132  132  STABS=          $(ONBLD_TOOLS)/bin/$(MACH)/stabs
 133  133  ELFEXTRACT=     $(ONBLD_TOOLS)/bin/$(MACH)/elfextract
 134  134  MBH_PATCH=      $(ONBLD_TOOLS)/bin/$(MACH)/mbh_patch
 135  135  BTXLD=          $(ONBLD_TOOLS)/bin/$(MACH)/btxld
 136  136  VTFONTCVT=      $(ONBLD_TOOLS)/bin/$(MACH)/vtfontcvt
      137 +# echo(1) and true(1) are specified without absolute paths, so that the shell
      138 +# spawned by make(1) may use the built-in versions.  This is minimally
      139 +# problematic, as the shell spawned by make(1) is known and under control, the
      140 +# only risk being if the shell falls back to $PATH.
      141 +#
      142 +# We specifically want an echo(1) that does interpolation of escape sequences,
      143 +# which ksh93, /bin/sh, and bash will all provide.
 137  144  ECHO=           echo
 138      -INS=            install
 139  145  TRUE=           true
      146 +INS=            $(ONBLD_TOOLS)/bin/$(MACH)/install
 140  147  SYMLINK=        /usr/bin/ln -s
 141  148  LN=             /usr/bin/ln
 142  149  CHMOD=          /usr/bin/chmod
 143  150  MV=             /usr/bin/mv -f
 144  151  RM=             /usr/bin/rm -f
 145  152  CUT=            /usr/bin/cut
 146  153  NM=             /usr/ccs/bin/nm
 147  154  DIFF=           /usr/bin/diff
 148  155  GREP=           /usr/bin/grep
 149  156  EGREP=          /usr/bin/egrep
↓ open down ↓ 1027 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX