Skip to content

Commit

Permalink
mem.sh fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
anjalidk committed Mar 19, 2024
1 parent 69a2c64 commit a5c8b65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MEM/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit a5c8b65

Please sign in to comment.