From a5c8b6586e135eb9c02fd1721f66869af3e049ea Mon Sep 17 00:00:00 2001 From: Anjali Kulkarni Date: Tue, 19 Mar 2024 16:34:04 -0700 Subject: [PATCH] mem.sh fix On the Ubuntu system on which qa_test.yml is run, gcc does not seem to accept -lresource as a CFLAGS. Instead, added this on the 'make' target. Signed-off-by: Anjali Kulkarni --- tests/MEM/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/MEM/Makefile b/tests/MEM/Makefile index ad590dd..043965c 100644 --- a/tests/MEM/Makefile +++ b/tests/MEM/Makefile @@ -1,14 +1,14 @@ CC = gcc export LD_LIBRARY_PATH = `git rev-parse --show-toplevel` -CFLAGS = -g -Wall -Werror -I $(LD_LIBRARY_PATH) -std=gnu99 -L $(LD_LIBRARY_PATH) -lresource +CFLAGS = -g -Wall -Werror -I $(LD_LIBRARY_PATH) -std=gnu99 -L $(LD_LIBRARY_PATH) REXE = mem_test mem_test_cg MFILES = mem_info.* mem_test: mem_test.c - $(CC) $(CFLAGS) -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ -lresource mem_test_cg: mem_test_cg.c - $(CC) $(CFLAGS) -o $@ $^ + $(CC) $(CFLAGS) -o $@ $^ -lresource clean: rm -rf $(MFILES) $(REXE)