diff --git a/configure.in b/configure.in index a85b48fc4b..2956468091 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/os2/dllar.sh b/src/os2/dllar.sh index 32352cebbd..652c940fd1 100644 --- a/src/os2/dllar.sh +++ b/src/os2/dllar.sh @@ -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