#create $dllFile as something matching 8.3 restrictions,
if [ -z $renameScript ] ; then
dllFile="$outFile"
- echo "using outFile as dllFile ($outFile)".
else
dllFile=`$renameScript $outimpFile`
- echo "modified $outimpFile to $dllFile"
fi
if [ $do_backup -ne 0 ] ; then
*!)
;;
*)
- doCommand "emxexp -u $file >> $tmpdefFile"
+ # 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
rm -f $defFile
echo "LIBRARY `basnam $dllFile` $library_flags" >> $defFile
dllFile="${dllFile}.dll"
-echo "dllFile now $dllFile";
if [ ! -z $description ]; then
echo "DESCRIPTION \"${description}\"" >> $defFile
fi
fi
doCommand "lxlite -cs -t: -mrn -mln $add_flags $dllFile"
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