Index: tmp_buildroot-2016.05/package/mtd/mtd.mk =================================================================== --- tmp_buildroot-2016.05.orig/package/mtd/mtd.mk +++ tmp_buildroot-2016.05/package/mtd/mtd.mk @@ -118,5 +118,7 @@ define MTD_INSTALL_TARGET_CMDS done endef +MTD_MAKE_OPTS += LDFLAGS="$(LDFLAGS) $(DEFAULT_LDFLAGS_APPL)" CFLAGS="$(CFLAGS) $(DEFAULT_CFLAGS_SRC)" + $(eval $(generic-package)) $(eval $(host-generic-package))