Skip to contentSkip to conversation

package/memtester: fix compile and link flags

PATCH New Baruch Siach 2 participants 3 messages Feb 8, 2021 – Feb 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/memtester/memtester.mk | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/memtester/memtester.mk +3 -2
index 49cc935f3966..ec515f63927f 100644
@@ -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
Signature · 1 line
2.30.0
#1 lore raw

PATCH 1/1 package/memtester: fix compile and link flags

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/memtester: fix compile and link flags

In reply to Baruch Siach
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

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.

Committed to 2020.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard