From 77289f10012b768a2244e489c9b776086555ce4c Mon Sep 17 00:00:00 2001 From: 3274 Date: Fri, 30 Apr 2021 19:39:09 +0200 Subject: [PATCH] fix linking to lib directory --- tests/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.in b/tests/Makefile.in index a50ee38..550200f 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -45,11 +45,11 @@ check: test_c test_f test_c: test.c - $(CC) $(CPPFLAGS) -I$(includedir) $(CFLAGS) test.c $(LDFLAGS) -ltrexio $(LIBS) -o test_c + $(CC) $(CPPFLAGS) -I$(includedir) $(CFLAGS) -Wl,-rpath,$(libdir) -L$(libdir) test.c $(LDFLAGS) -ltrexio $(LIBS) -o test_c test_f: trexio_f.o test.f90 - $(FC) $(CPPFLAGS) -I$(includedir) $(FCFLAGS) test.f90 trexio_f.o $(LDFLAGS) -ltrexio $(LIBS) -o test_f + $(FC) $(CPPFLAGS) -I$(includedir) $(FCFLAGS) -Wl,-rpath,$(libdir) -L$(libdir) test.f90 trexio_f.o $(LDFLAGS) -ltrexio $(LIBS) -o test_f clean: