mtd-utils: fix build with external toolchain
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 8 Mar 2010 21:44:28 +0000 (22:44 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 8 Mar 2010 21:44:28 +0000 (22:44 +0100)
Reported by H Hartley Sweeten.

Make sure we pass proper CFLAGS to mtd-utils, so builds needing --sysroot
works (E.G. external toolchains).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/mtd/mtd.mk

diff --git a/CHANGES b/CHANGES
index 91113442209ed1eff6df37dcdebb33117d591940..9746c60aded6946c8d7a4fab07197a0b17219874 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,7 +2,7 @@
 
         X.org updated to 7.5.
 
-        Updated/fixed packages: dosfstools, e2fsprogs, squashfs
+        Updated/fixed packages: dosfstools, e2fsprogs, mtd-utils, squashfs
 
 2010.02, Release February 26th, 2010:
 
index 244fd8e9597729b0dc6047e2d2d13061af6d82f2..3e0fcaf803bb601c90fbb6d7cc37cda8fdf83cd9 100644 (file)
@@ -111,14 +111,14 @@ MTD_BUILD_TARGETS := $(MTD_TARGETS) $(MTD_UBI_TARGETS)
 
 $(MTD_BUILD_TARGETS): $(MTD_DIR)/.unpacked
 ifneq ($(MTD_TARGETS),)
-       $(MAKE) LDFLAGS="$(TARGET_LDFLAGS)" \
+       $(MAKE) $(TARGET_CONFIGURE_ENV) \
                BUILDDIR=$(MTD_DIR) \
                CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) \
                WITHOUT_XATTR=1 WITHOUT_LARGEFILE=1 \
                -C $(MTD_DIR) $(MTD_TARGETS)
 endif
 ifneq ($(MTD_UBI_TARGETS),)
-       $(MAKE) LDFLAGS="$(TARGET_LDFLAGS)" \
+       $(MAKE) $(TARGET_CONFIGURE_ENV) \
                BUILDDIR=$(MTD_DIR)/ubi-utils \
                CROSS=$(TARGET_CROSS) CC=$(TARGET_CC) \
                WITHOUT_XATTR=1 WITHOUT_LARGEFILE=1 \