From ad3ed21e5a1a29adf9d3808ba458646d14720498 Mon Sep 17 00:00:00 2001 From: minhqdao Date: Mon, 4 Mar 2024 03:35:59 +0300 Subject: [PATCH] Try -rpath --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b9162a5..7cdc5de 100644 --- a/Makefile +++ b/Makefile @@ -71,14 +71,13 @@ $(EXEDIRSTATIC)/%.out: $(EXMPLDIR)/%.f90 $(STATIC) $(EXEDIRSHARED)/%.out: $(TESTDIR)/%.f90 $(SHARED) mkdir -p $(EXEDIRSHARED) - $(FC) $(FFLAGS) $(MODIN) -o $@ $< $(SHARED) + $(FC) $(FFLAGS) $(MODIN) -o $@ $< $(SHARED) -Wl,-rpath=../../../.. $(EXEDIRSHARED)/%.out: $(EXMPLDIR)/%.f90 $(SHARED) mkdir -p $(EXEDIRSHARED) - $(FC) $(FFLAGS) $(MODIN) -o $@ $< $(SHARED) + $(FC) $(FFLAGS) $(MODIN) -o $@ $< $(SHARED) -Wl,-rpath=../../../.. test: $(TESTEXESSTATIC) $(TESTEXESSHARED) $(EXMPLEXESSTATIC) $(EXMPLEXESSHARED) - @ls @for f in $^; do $$f; done clean: