aboutsummaryrefslogtreecommitdiff
path: root/package/memtester
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2021-02-08 11:04:34 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2021-02-08 16:24:38 +0100
commit25e09fdb9e4aa1e940dbdfcdad8dedca42814fcc (patch)
tree19b737c44484acc2097d7bb336409ed66ba9f9cb /package/memtester
parentf39b2b3d75299b57b57ba80260230dd296526980 (diff)
downloadbuildroot-25e09fdb9e4aa1e940dbdfcdad8dedca42814fcc.tar.gz
buildroot-25e09fdb9e4aa1e940dbdfcdad8dedca42814fcc.tar.bz2
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 <matthew.weber@rockwellcollins.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/memtester')
-rw-r--r--package/memtester/memtester.mk5
1 files 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