From: Václav Slavík Date: Sun, 29 Apr 2012 09:36:44 +0000 (+0000) Subject: Don't use ancient -no-cpp-precomp flag on OS X. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/550a0c4154294e56c61ce933f905040d65be78cf?hp=39258ad7965f272f0f0ace2c516669df0b50145f Don't use ancient -no-cpp-precomp flag on OS X. 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 --- diff --git a/build/aclocal/bakefile.m4 b/build/aclocal/bakefile.m4 index 8608b64e59..8d539f04be 100644 --- a/build/aclocal/bakefile.m4 +++ b/build/aclocal/bakefile.m4 @@ -558,16 +558,7 @@ AC_DEFUN([AC_BAKEFILE_DEPS], 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 diff --git a/configure b/configure index d9bf770b06..96e4f07a1a 100755 --- a/configure +++ b/configure @@ -53827,14 +53827,7 @@ echo "${ECHO_T}disabled" >&6; } 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