void-packages/srcpkgs/e2fsprogs/patches/cross.patch

13 lines
431 B
Diff

--- configure.ac.orig 2019-07-18 10:57:21.187376556 +0200
+++ configure.ac 2019-07-18 10:58:09.968379876 +0200
@@ -1611,6 +1611,9 @@
if test $cross_compiling = no; then
BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
BUILD_LDFLAGS="$LDFLAGS"
+else
+ BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
+ BUILD_LDFLAGS="$BUILD_LDFLAGS"
fi
AC_SUBST(BUILD_CFLAGS)
AC_SUBST(BUILD_LDFLAGS)