Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use readlink instead of realpath because it's more commonly installed
[simgrid.git] / src / smpi / smpicc.in
index ac32b8d..0d873b4 100755 (executable)
@@ -51,7 +51,8 @@ while [ -n "$1" ]; do
       CMDLINE="${CMDLINE} -c "
   elif [ "${ARG%.c}" != "${ARG}" ]; then
     INCLUDEARGS="${INCLUDEARGS} -I . -I .. -I ../include -I @includedir@ "
-    SRCFILE="$(realpath ${ARG})"
+#    SRCFILE="$(realpath ${ARG})"
+    SRCFILE="$(/bin/readlink -f ${ARG})"
     modsource ${SRCFILE}
     CMDLINE="${CMDLINE} ${TMPDIR}${SRCFILE} "
   else