diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-03 18:08:10 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-03 18:08:10 +0000 |
commit | c4bd82d701879af2a073472eaf8d4599047793ed (patch) | |
tree | 4a261fcc0d68d68d35bad460be71bb92cc803516 /usr.sbin/nmtree | |
parent | 9053c1a4316e0168d52ec2de8a7669bf0fd5e2c1 (diff) | |
download | src-c4bd82d701879af2a073472eaf8d4599047793ed.tar.gz src-c4bd82d701879af2a073472eaf8d4599047793ed.zip |
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
Notes
Notes:
svn path=/head/; revision=363806
Diffstat (limited to 'usr.sbin/nmtree')
-rw-r--r-- | usr.sbin/nmtree/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/nmtree/Makefile b/usr.sbin/nmtree/Makefile index c29974ff7fcc..57705671f155 100644 --- a/usr.sbin/nmtree/Makefile +++ b/usr.sbin/nmtree/Makefile @@ -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> |