]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use ancient -no-cpp-precomp flag on OS X.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Apr 2012 09:36:44 +0000 (09:36 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Apr 2012 09:36:44 +0000 (09:36 +0000)
See http://trac.wxwidgets.org/ticket/14029 for a discussion of the
problems it causes when using non-Apple compiler. Even for Apple's GCC,
it does nothing these days and we no longer support OS X 10.3, so
there's no point in continuing to use it.

Fixes #14029.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/aclocal/bakefile.m4
configure

index 8608b64e59abeced7d140b5f2bcaf1affb812177..8d539f04be55b4fe4b762b3169a0012c4b512930 100644 (file)
@@ -558,16 +558,7 @@ AC_DEFUN([AC_BAKEFILE_DEPS],
 
         if test "x$GCC" = "xyes"; then
             DEPSMODE=gcc
 
         if test "x$GCC" = "xyes"; then
             DEPSMODE=gcc
-            case "${BAKEFILE_HOST}" in
-                *-*-darwin* )
-                    dnl -cpp-precomp (the default) conflicts with -MMD option
-                    dnl used by bk-deps (see also http://developer.apple.com/documentation/Darwin/Conceptual/PortingUnix/compiling/chapter_4_section_3.html)
-                    DEPSFLAG="-no-cpp-precomp -MMD"
-                ;;
-                * )
-                    DEPSFLAG="-MMD"
-                ;;
-            esac
+            DEPSFLAG="-MMD"
             AC_MSG_RESULT([gcc])
         elif test "x$MWCC" = "xyes"; then
             DEPSMODE=mwcc
             AC_MSG_RESULT([gcc])
         elif test "x$MWCC" = "xyes"; then
             DEPSMODE=mwcc
index d9bf770b06d772cb74a276f3d9fa2c304329d5e2..96e4f07a1ae005fc2f5c2cd023f473fa32fda920 100755 (executable)
--- a/configure
+++ b/configure
@@ -53827,14 +53827,7 @@ echo "${ECHO_T}disabled" >&6; }
 
         if test "x$GCC" = "xyes"; then
             DEPSMODE=gcc
 
         if test "x$GCC" = "xyes"; then
             DEPSMODE=gcc
-            case "${BAKEFILE_HOST}" in
-                *-*-darwin* )
-                                                            DEPSFLAG="-no-cpp-precomp -MMD"
-                ;;
-                * )
-                    DEPSFLAG="-MMD"
-                ;;
-            esac
+            DEPSFLAG="-MMD"
             { echo "$as_me:$LINENO: result: gcc" >&5
 echo "${ECHO_T}gcc" >&6; }
         elif test "x$MWCC" = "xyes"; then
             { echo "$as_me:$LINENO: result: gcc" >&5
 echo "${ECHO_T}gcc" >&6; }
         elif test "x$MWCC" = "xyes"; then