Skip to content

Commit

Permalink
Try -rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
minhqdao committed Mar 4, 2024
1 parent b2448f3 commit ad3ed21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad3ed21

Please sign in to comment.