aboutsummaryrefslogtreecommitdiff
path: root/package/e2fsprogs/e2fsprogs.mk
diff options
context:
space:
mode:
authorGravatar Max Filippov <jcmvbkbc@gmail.com>2016-11-16 15:26:01 -0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-11-22 10:34:26 +0100
commit47329fb4cff4f482d7b9a03a54cbd314e817bf32 (patch)
tree445795a09fbaf5e83b2df60495c92ee34a483360 /package/e2fsprogs/e2fsprogs.mk
parenta01c4cda3e738d19898244bf09fcb317dada32d1 (diff)
downloadbuildroot-47329fb4cff4f482d7b9a03a54cbd314e817bf32.tar.gz
buildroot-47329fb4cff4f482d7b9a03a54cbd314e817bf32.tar.bz2
package/e2fsprogs: disable use of magic.h
RHEL 5.x does have magic.h, but it does not define all expected symbols. In particular, the NO_CHECK symbols were only added in file 4.20 and RHEL 5.x is using 4.17. Don't use magic.h and libmagic when building host package. Suggested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/e2fsprogs/e2fsprogs.mk')
-rw-r--r--package/e2fsprogs/e2fsprogs.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk
index 022ba5283a..b6e79d246b 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -51,6 +51,12 @@ endif
# for util/subst.c to build properly.
E2FSPROGS_CONF_ENV += BUILD_CFLAGS="-DHAVE_SYS_STAT_H"
+# Disable use of the host magic.h, as on older hosts (e.g. RHEL 5)
+# it doesn't provide definitions expected by e2fsprogs support lib.
+HOST_E2FSPROGS_CONF_ENV += \
+ ac_cv_header_magic_h=no \
+ ac_cv_lib_magic_magic_file=no
+
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
# util-linux libuuid pulls in libintl if needed, so ensure we also
# link against it, otherwise static linking fails