svn commit: r363806 - head/usr.sbin/nmtree

Alex Richardson arichardson at FreeBSD.org
Mon Aug 3 18:08:13 UTC 2020


Author: arichardson
Date: Mon Aug  3 18:08:10 2020
New Revision: 363806
URL: https://svnweb.freebsd.org/changeset/base/363806

Log:
  Allow bootstrapping mtree on Linux systems
  
  Linux glibc has a dummy lchmod that always fails and emitting a linker
  warning when used. Don't fail the build due to that warning when
  bootstrapping by setting LD_FATAL_WARNINGS=no.
  
  Reviewed By:	brooks, emaste
  Differential Revision: https://reviews.freebsd.org/D25930

Modified:
  head/usr.sbin/nmtree/Makefile

Modified: head/usr.sbin/nmtree/Makefile
==============================================================================
--- head/usr.sbin/nmtree/Makefile	Mon Aug  3 18:08:04 2020	(r363805)
+++ head/usr.sbin/nmtree/Makefile	Mon Aug  3 18:08:10 2020	(r363806)
@@ -22,4 +22,10 @@ MLINKS=		mtree.8 nmtree.8
 HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 
+.if defined(BOOTSTRAPPING)
+# Linux glibc has a dummy lchmod that always fails. Don't fail due to
+# the linker warning that it emits.
+LD_FATAL_WARNINGS=no
+.endif
+
 .include <bsd.prog.mk>


More information about the svn-src-all mailing list