aboutsummaryrefslogtreecommitdiff
path: root/package/e2fsprogs/e2fsprogs.mk
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-03 14:19:50 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-03 14:19:50 +0200
commit4d1337e3abd935ae81f2ec7320213c75d7dd4b7c (patch)
treef41f10309403170765506135a9a0019878718e2c /package/e2fsprogs/e2fsprogs.mk
parente47638f8dca29b0d9b729edbaeaa11a08f9957fa (diff)
downloadbuildroot-4d1337e3abd935ae81f2ec7320213c75d7dd4b7c.tar.gz
buildroot-4d1337e3abd935ae81f2ec7320213c75d7dd4b7c.tar.bz2
e2fsprogs: fix build failure of subst.c
subst.c is built for the host, but uses defines calculated by the configure script using the cross-compiler. By passing BUILD_CFLAGS, we help subst.c include the proper header files, and therefore avoid the build failure. Fixes: http://autobuild.buildroot.org/results/2a66280800b8aa16fee2701b3f345aa24bb13c35/ 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 c1cbf715a4..63f5856ecd 100644
--- a/package/e2fsprogs/e2fsprogs.mk
+++ b/package/e2fsprogs/e2fsprogs.mk
@@ -43,6 +43,12 @@ ifeq ($(BR2_nios2),y)
E2FSPROGS_CONF_ENV += ac_cv_func_fallocate=no
endif
+# Some programs are built for the host, but use definitions guessed by
+# the configure script (i.e with the cross-compiler). Help them by
+# saying that <sys/stat.h> is available on the host, which is needed
+# for util/subst.c to build properly.
+E2FSPROGS_CONF_ENV += BUILD_CFLAGS="-DHAVE_SYS_STAT_H"
+
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