Index: ../trunk-jpl/m4/issm_options.m4
===================================================================
--- ../trunk-jpl/m4/issm_options.m4	(revision 18555)
+++ ../trunk-jpl/m4/issm_options.m4	(revision 18556)
@@ -287,7 +287,7 @@
 				fi
 
 				dnl Make sure mexFunction.map is not in MEXLIB to avoid problems with global variables
-				MEXLINK=$(echo $MEXLINK | sed -e "s/-[[^ ]]*mexFunction\\.map//g")
+				MEXLINK=$(echo $MEXLINK | sed -e "s/,-expo.*mexFunction\\.map\"//g" | sed -e "s/-[[^ ]]*mexFunction\\.map//g")
 
   			;;
       esac
