From 25e09fdb9e4aa1e940dbdfcdad8dedca42814fcc Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Mon, 8 Feb 2021 11:04:34 +0200 Subject: [PATCH] package/memtester: fix compile and link flags The memtester build system does not use CFLAGS/LDFLAGS variables. Everything should be written to conf-cc and conf-ld. Use '%' as sed expression delimiter because comma might appear in LDFLAGS. Cc: Matt Weber Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- package/memtester/memtester.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package/memtester/memtester.mk b/package/memtester/memtester.mk index 49cc935f39..ec515f6392 100644 --- a/package/memtester/memtester.mk +++ b/package/memtester/memtester.mk @@ -13,8 +13,9 @@ MEMTESTER_CPE_ID_VENDOR = pryopus MEMTESTER_TARGET_INSTALL_OPTS = INSTALLPATH=$(TARGET_DIR)/usr define MEMTESTER_BUILD_CMDS - $(SED) "s,^cc,$(TARGET_CC)," $(@D)/conf-* - $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) + $(SED) "s%^cc%$(TARGET_CC) $(TARGET_CFLAGS)%" $(@D)/conf-cc + $(SED) "s%^cc%$(TARGET_CC) $(TARGET_LDFLAGS)%" $(@D)/conf-ld + $(MAKE) -C $(@D) endef define MEMTESTER_INSTALL_TARGET_CMDS -- 2.30.2