From 6beca4248f572c2503657fb16341bd43cfa7d254 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 12 Jan 2010 07:58:44 +0100 Subject: build: fix build failure due to missing libxattr Configure is supposed to detect insufficient XATTR support. However, if a system has the required headers, but no library, the configure script would mistakenly enable USE_XATTR. * m4/xattr.m4 (gl_FUNC_XATTR): If the attr_copy_file function is not found, don't set USE_XATTR. Nelson Beebe reported a link failure on RHEL 5.3. Also, do not let the combination of --disable-xattr and a stray LIB_XATTR environment setting perturb the build. * NEWS (Build-related): Mention it. --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 61e6a31c9..e8f1dd7a3 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,10 @@ GNU coreutils NEWS -*- outline -*- own header. Now, gnulib works around the bug in those older glibc headers. + Building would fail with a link error (cp/copy.o) when XATTR headers + were installed without the corresponding library. Now, configure + detects that and disables xattr support, as one would expect. + * Noteworthy changes in release 8.3 (2010-01-07) [stable] -- cgit v1.2.3-70-g09d2