summaryrefslogtreecommitdiffstats
path: root/package/mtd/mtd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/mtd/mtd.mk')
-rw-r--r--package/mtd/mtd.mk4
1 files changed, 2 insertions, 2 deletions
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 \