Detect if g++ requires -fvtable-thunks for COM interfaces.
Newer g++ does not require nor support it, so it must not be used. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1f7314bce9
commit
8284b0c5bd
12
configure.in
12
configure.in
@ -4313,8 +4313,18 @@ if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
|
||||
|
||||
if test "$ac_cv_header_ole2_h" = "yes" ; then
|
||||
if test "$GCC" = yes ; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
AC_MSG_CHECKING([if g++ requires -fvtable-thunks])
|
||||
AC_TRY_COMPILE([#include <windows.h>
|
||||
#include <ole2.h>],
|
||||
[],
|
||||
[AC_MSG_RESULT(no)],
|
||||
[AC_MSG_RESULT(yes)
|
||||
CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"])
|
||||
AC_LANG_RESTORE
|
||||
ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
|
||||
CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
|
||||
LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
|
||||
AC_DEFINE(wxUSE_OLE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user