disable Darwin GCC precompiled headers by default also for wxBase
integrate includes into preprocessor flags instead of both C and C++ flags git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7975104d4a
commit
b2fee376fd
33
configure.in
33
configure.in
@ -715,8 +715,8 @@ WX_ARG_ENABLE(soname, [ --enable-soname set the DT_SONAME field in
|
|||||||
WX_ARG_ENABLE(optimise, [ --enable-optimise create optimised code], wxUSE_OPTIMISE)
|
WX_ARG_ENABLE(optimise, [ --enable-optimise create optimised code], wxUSE_OPTIMISE)
|
||||||
WX_ARG_ENABLE(debug, [ --enable-debug same as debug_flag and debug_info], wxUSE_DEBUG)
|
WX_ARG_ENABLE(debug, [ --enable-debug same as debug_flag and debug_info], wxUSE_DEBUG)
|
||||||
|
|
||||||
dnl allow the precompiled header option to be disabled under Mac OS X
|
dnl allow the precompiled header option to be disabled under Mac OS X/Darwin
|
||||||
WX_ARG_ENABLE(precomp, [ --enable-precomp enable use of precompiled headers (Mac OS X)], wxUSE_PRECOMP)
|
WX_ARG_ENABLE(precomp, [ --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)], wxUSE_PRECOMP)
|
||||||
|
|
||||||
if test "$wxUSE_DEBUG" = "yes"; then
|
if test "$wxUSE_DEBUG" = "yes"; then
|
||||||
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
||||||
@ -1907,6 +1907,16 @@ if test "$USE_WIN32" = 1 ; then
|
|||||||
RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
|
RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$USE_DARWIN" = 1; then
|
||||||
|
// Mac OS X/Darwin GCC uses precompiled headers by default
|
||||||
|
// this can cause problems both when compiling wxMac and wxBase
|
||||||
|
if test "$wxUSE_PRECOMP" = "yes"; then
|
||||||
|
CPPFLAGS="$CPPFLAGS -cpp-precomp"
|
||||||
|
else
|
||||||
|
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_GUI" = "yes"; then
|
if test "$wxUSE_GUI" = "yes"; then
|
||||||
USE_GUI=1
|
USE_GUI=1
|
||||||
|
|
||||||
@ -2372,14 +2382,7 @@ equivalent variable and GTK+ is version 1.2.3 or above.
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_MAC" = 1; then
|
if test "$wxUSE_MAC" = 1; then
|
||||||
if test "$wxUSE_PRECOMP" = "yes"; then
|
CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
|
||||||
CPPFLAGS="$CPPFLAGS -cpp-precomp"
|
|
||||||
else
|
|
||||||
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
|
|
||||||
fi
|
|
||||||
CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
|
|
||||||
CFLAGS="$CFLAGS -fpascal-strings"
|
|
||||||
CXXFLAGS="$CXXFLAGS -fpascal-strings"
|
|
||||||
|
|
||||||
TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
|
TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
|
||||||
TOOLKIT=MAC
|
TOOLKIT=MAC
|
||||||
@ -2731,8 +2734,9 @@ if test "$wxUSE_SHARED" = "yes"; then
|
|||||||
*-*-darwin* )
|
*-*-darwin* )
|
||||||
dnl For Unix to MacOS X porting instructions, see:
|
dnl For Unix to MacOS X porting instructions, see:
|
||||||
dnl http://fink.sourceforge.net/doc/porting/porting.html
|
dnl http://fink.sourceforge.net/doc/porting/porting.html
|
||||||
CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
|
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
|
||||||
CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
|
CFLAGS="$CFLAGS -fno-common"
|
||||||
|
CXXFLAGS="$CXXFLAGS -fno-common"
|
||||||
dnl wxWindows must be fully binded (lazy binding breaks RTTI classinfo)
|
dnl wxWindows must be fully binded (lazy binding breaks RTTI classinfo)
|
||||||
dnl this can be done either with the exe linker flag -Wl,-bind_at_load
|
dnl this can be done either with the exe linker flag -Wl,-bind_at_load
|
||||||
dnl or with a double stage link in order to create a single module
|
dnl or with a double stage link in order to create a single module
|
||||||
@ -3130,7 +3134,7 @@ if test "$USE_BEOS" = 1; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$USE_DARWIN" = 1; then
|
if test "$USE_DARWIN" = 1; then
|
||||||
dnl Mac OS X has both nanosleep and usleep
|
dnl Mac OS X/Darwin has both nanosleep and usleep
|
||||||
dnl but only usleep is defined in unistd.h
|
dnl but only usleep is defined in unistd.h
|
||||||
AC_DEFINE(HAVE_USLEEP)
|
AC_DEFINE(HAVE_USLEEP)
|
||||||
HAVE_SOME_SLEEP_FUNC=1
|
HAVE_SOME_SLEEP_FUNC=1
|
||||||
@ -4976,9 +4980,10 @@ if test "$GXX" = yes ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
|
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
|
||||||
|
|
||||||
dnl remove the extra white space from the cc/c++/ld options
|
dnl remove the extra white space from the cc/c++/ld options
|
||||||
|
CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
|
||||||
CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
|
CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
|
||||||
CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
|
CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
|
||||||
LIBS=`echo $LIBS | sed 's/ \+/ /g'`
|
LIBS=`echo $LIBS | sed 's/ \+/ /g'`
|
||||||
|
@ -66,7 +66,7 @@ INSTALL_SCRIPT = @INSTALL@
|
|||||||
########################### Flags #################################
|
########################### Flags #################################
|
||||||
|
|
||||||
CPPFLAGS = ${APPEXTRACPPFLAGS} @CPPFLAGS@ @TOOLCHAIN_DEFS@@TOOLCHAIN_DLL_DEFS@ @WXDEBUG_DEFINE@
|
CPPFLAGS = ${APPEXTRACPPFLAGS} @CPPFLAGS@ @TOOLCHAIN_DEFS@@TOOLCHAIN_DLL_DEFS@ @WXDEBUG_DEFINE@
|
||||||
CFLAGS = ${APPEXTRACFLAGS} ${CPPFLAGS} @CODE_GEN_FLAGS@ @CFLAGS@
|
CFLAGS = ${APPEXTRACFLAGS} ${CPPFLAGS}@CODE_GEN_FLAGS@ @CFLAGS@
|
||||||
CXXFLAGS = ${APPEXTRACXXFLAGS} ${CPPFLAGS}@CODE_GEN_FLAGS@@CODE_GEN_FLAGS_CXX@ @CXXFLAGS@
|
CXXFLAGS = ${APPEXTRACXXFLAGS} ${CPPFLAGS}@CODE_GEN_FLAGS@@CODE_GEN_FLAGS_CXX@ @CXXFLAGS@
|
||||||
PICFLAGS = @PIC_FLAG@
|
PICFLAGS = @PIC_FLAG@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user