Index: /issm/trunk-jpl/src/wrappers/matlab/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/wrappers/matlab/Makefile.am	(revision 27864)
+++ /issm/trunk-jpl/src/wrappers/matlab/Makefile.am	(revision 27865)
@@ -121,4 +121,7 @@
 if MAC
 AM_LDFLAGS += -Wl,-rpath,'@rpath'
+if FORTRAN
+AM_LDFLAGS += -Wl,-rpath,$(FORTRANDIR)
+endif
 else
 AM_LDFLAGS += -Wl,-static -Wl,-lbacktrace -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN'
Index: /issm/trunk-jpl/src/wrappers/python/Makefile.am
===================================================================
--- /issm/trunk-jpl/src/wrappers/python/Makefile.am	(revision 27864)
+++ /issm/trunk-jpl/src/wrappers/python/Makefile.am	(revision 27865)
@@ -106,4 +106,7 @@
 if MAC
 AM_LDFLAGS += -Wl,-rpath,'@rpath' -Wl,-rpath,'/Applications/Xcode.app/Contents/Developer/Library/Frameworks' -Wl,-rpath,'/Library/Developer/CommandLineTools/Library/Frameworks'
+if FORTRAN
+AM_LDFLAGS += -Wl,-rpath,$(FORTRANDIR)
+endif
 else
 AM_LDFLAGS += -Wl,-static -Wl,-lbacktrace -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN'
