*!)
;;
*)
- doCommand "emxexp -u $file | grep -v weak$ >> $tmpdefFile || true"
+ # we do not want to export weak symbols in general, so we filter
+ # those out using grep.
+ doCommand "emxexp -u $file >> $tmpdefFile || true"
;;
esac
done
if [ $EXPORT_BY_ORDINALS -ne 0 ]; then
add_flags="-ynd"
fi
- doCommand "lxlite -cs -t: -mrn -mln $add_flags $dllFile"
+ doCommand "lxlite -cs -t: $add_flags `echo $dllFile | sed 's/\//\\\\/g'`"
fi
-doCommand "emxomf -s -l $arcFile"
+
+#New version of emxomf do no longer want the "-l" flag
+case `emxomf` in
+emxomf\ 0.6*)
+ omflibflag=""
+ ;;
+*)
+ omflibflag=" -l"
+ ;;
+esac
+doCommand "emxomf -s$omflibflag $arcFile"
# Successful exit.
CleanUp 1