Update test makefile
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 7 Oct 2018 18:03:12 +0000 (14:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 7 Oct 2018 18:03:12 +0000 (14:03 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/Makefile

index 23496bb58e35c1b54310a96c8325b645ee424653..dd303d2661c5db02443dd1c84d88cd48820bed08 100644 (file)
@@ -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
 
This page took 0.028583 seconds and 4 git commands to generate.