diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-08 22:44:28 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-08 22:44:28 +0100 |
commit | d5bf5f967009733da99c55febacb3fb0be686cad (patch) | |
tree | 1f8a90a7b609acec8aae453d3c2ccc7c9f6381a2 | |
parent | c9d195ed84110cc7bb2b7895cb5bc883ce9e3ae8 (diff) | |
download | buildroot-novena-d5bf5f967009733da99c55febacb3fb0be686cad.tar.gz buildroot-novena-d5bf5f967009733da99c55febacb3fb0be686cad.zip |
mtd-utils: fix build with external toolchain
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>
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | package/mtd/mtd.mk | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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: diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk index 244fd8e95..3e0fcaf80 100644 --- a/package/mtd/mtd.mk +++ b/package/mtd/mtd.mk @@ -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 \ |