Force OMF mode for DLL builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis 2005-02-14 08:41:52 +00:00
parent 69ea41a788
commit f6a9b35e1f
2 changed files with 5 additions and 1 deletions

View File

@ -1559,6 +1559,10 @@ case "${host}" in
LIBS="$LIBS -lstdc++"
fi
fi
if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
AC_MSG_WARN([Building DLLs requires OMF mode, enabled])
wxUSE_OMF=yes
fi
if test "$wxUSE_OMF" = "yes"; then
LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
fi

View File

@ -407,7 +407,7 @@ for file in $inputFiles ; do
*)
# we do not want to export weak symbols in general, so we filter
# those out using grep.
doCommand "emxexp -u $file | grep -v weak$ >> $tmpdefFile || true"
doCommand "emxexp -u $file >> $tmpdefFile || true"
;;
esac
done