From: Julian Smart Date: Sat, 10 Jul 2010 14:22:34 +0000 (+0000) Subject: Use -miphoneos-version-min if compiling for iPhone and --with-macosx-version-min... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/380dc46f788d220f14e41a6454394321ceca2e21 Use -miphoneos-version-min if compiling for iPhone and --with-macosx-version-min was specified. Otherwise .mm files may not compile correctly with some iPhone SDKs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/configure.in b/configure.in index 3c391a9e5b..9b2b5315f1 100644 --- a/configure.in +++ b/configure.in @@ -1287,7 +1287,11 @@ if test "x$NEEDS_GCC40" == "xyes"; then fi if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then - MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" + if test "$wxUSE_OSX_IPHONE" = 1; then + MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN" + else + MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" + endif eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""