Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2020 18:08:10 +0000 (UTC)
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363806 - head/usr.sbin/nmtree
Message-ID:  <202008031808.073I8ANI053038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008031808.073I8ANI053038>