From fe814ef5758d93378fb97a06023f0e95312fcd45 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 7 Oct 2018 14:03:12 -0400 Subject: [PATCH] Update test makefile Signed-off-by: Mathieu Desnoyers --- tests/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 23496bb..dd303d2 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -10,7 +10,7 @@ # the code was modified is included with the above copyright notice. CPPFLAGS += -I../include -CFLAGS += -O2 -g +CFLAGS += -O2 -g -L../ -Wl,-rpath=../ LDFLAGS += -pthread all: basic_percpu_ops_test @@ -18,8 +18,7 @@ all: basic_percpu_ops_test INCLUDES=$(wildcard ../include/rseq/*.h) basic_percpu_ops_test: basic_percpu_ops_test.c ${INCLUDES} - $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -shared -fpic \ - $< -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $< -lrseq -o $@ .PHONY: clean -- 2.34.1