X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5a547f391f7619b006ee0717b562826677bcd4a..806f9e8330691d64966af62d35e6b3d88f30471e:/src/os2/dllar.sh diff --git a/src/os2/dllar.sh b/src/os2/dllar.sh index 86e0fe3340..2dd495b9b6 100644 --- a/src/os2/dllar.sh +++ b/src/os2/dllar.sh @@ -384,10 +384,8 @@ arcFile2="${outimpFile}.lib" #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 @@ -407,7 +405,9 @@ for file in $inputFiles ; do *!) ;; *) - 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 @@ -416,7 +416,6 @@ 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 @@ -467,9 +466,19 @@ if [ $flag_USE_LXLITE -ne 0 ]; then 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