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>
(cherry picked from commit 25e09fdb9e
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
fff18cb0fa
commit
9b456d104e
@ -12,8 +12,9 @@ MEMTESTER_LICENSE_FILES = COPYING
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user