]> git.saurik.com Git - wxWidgets.git/commitdiff
Use -miphoneos-version-min if compiling for iPhone and --with-macosx-version-min...
authorJulian Smart <julian@anthemion.co.uk>
Sat, 10 Jul 2010 14:22:34 +0000 (14:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 10 Jul 2010 14:22:34 +0000 (14:22 +0000)
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

configure.in

index 3c391a9e5b7b0ba4fcab3dbbdbf2adf2a3403f03..9b2b5315f1a0b0604e7ebbbbc3a3c3e50e61d09a 100644 (file)
@@ -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\""