1. next attempt to fix RH 7.1 build
2. CPPFLAGS are the flags for cpp, not for c++ compiler! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,10 +22,10 @@ include ./src/make.env
|
|||||||
$(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
$(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
.cpp.o :
|
.cpp.o :
|
||||||
$(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
$(CC) -c @DEP_INFO_FLAGS@ $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
.cxx.o :
|
.cxx.o :
|
||||||
$(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
$(CC) -c @DEP_INFO_FLAGS@ $(CXXFLAGS) $(PICFLAGS) @WXMSW_DLL_DEFINES@ -o $@ $<
|
||||||
|
|
||||||
########################### Paths #################################
|
########################### Paths #################################
|
||||||
|
|
||||||
|
15
configure.in
15
configure.in
@@ -2306,7 +2306,6 @@ if test "$wxUSE_SHARED" = "yes"; then
|
|||||||
;;
|
;;
|
||||||
*-*-darwin* )
|
*-*-darwin* )
|
||||||
TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
|
TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
|
||||||
CFLAGS="${CFLAGS} -fno-common"
|
|
||||||
CPPFLAGS="${CPPFLAGS} -fno-common"
|
CPPFLAGS="${CPPFLAGS} -fno-common"
|
||||||
SHARED_LD="${CXX} -dynamiclib -o"
|
SHARED_LD="${CXX} -dynamiclib -o"
|
||||||
PIC_FLAG="-dynamic -fPIC"
|
PIC_FLAG="-dynamic -fPIC"
|
||||||
@@ -3075,7 +3074,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
|
|||||||
dnl we need to define _XOPEN_SOURCE=500 to get PTHREAD_MUTEX_RECURSIVE
|
dnl we need to define _XOPEN_SOURCE=500 to get PTHREAD_MUTEX_RECURSIVE
|
||||||
dnl with glibc 2.1+, it probably shouldn't hurt elsewhere?
|
dnl with glibc 2.1+, it probably shouldn't hurt elsewhere?
|
||||||
if test "x$wx_lib_glibc21" = "xyes"; then
|
if test "x$wx_lib_glibc21" = "xyes"; then
|
||||||
CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
|
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CACHE_CHECK([for pthread_mutexattr_t], wx_cv_type_pthread_mutexattr_t,
|
AC_CACHE_CHECK([for pthread_mutexattr_t], wx_cv_type_pthread_mutexattr_t,
|
||||||
@@ -3122,7 +3121,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
|
|||||||
dnl building MT programs under Solaris with the native compiler requires -mt
|
dnl building MT programs under Solaris with the native compiler requires -mt
|
||||||
dnl switch
|
dnl switch
|
||||||
if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
|
if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
|
||||||
CFLAGS="${CFLAGS} -mt"
|
CPPFLAGS="${CFLAGS} -mt"
|
||||||
CXXFLAGS="${CXXFLAGS} -mt"
|
CXXFLAGS="${CXXFLAGS} -mt"
|
||||||
LDFLAGS="${LDFLAGS} -mt"
|
LDFLAGS="${LDFLAGS} -mt"
|
||||||
fi
|
fi
|
||||||
@@ -3136,8 +3135,7 @@ if test "$wxUSE_THREADS" = "yes"; then
|
|||||||
|
|
||||||
dnl must define _REENTRANT for multithreaded code except for Darwin/Mac OS X
|
dnl must define _REENTRANT for multithreaded code except for Darwin/Mac OS X
|
||||||
if test "$USE_DARWIN" != 1; then
|
if test "$USE_DARWIN" != 1; then
|
||||||
CFLAGS="${CFLAGS} -D_REENTRANT"
|
CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
|
||||||
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
|
||||||
@@ -3147,8 +3145,7 @@ else
|
|||||||
if test "$ac_cv_func_strtok_r" = "yes"; then
|
if test "$ac_cv_func_strtok_r" = "yes"; then
|
||||||
AC_MSG_CHECKING(if -D_REENTRANT is needed)
|
AC_MSG_CHECKING(if -D_REENTRANT is needed)
|
||||||
if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
|
if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
|
||||||
CFLAGS="${CFLAGS} -D_REENTRANT"
|
CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
|
||||||
CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
|
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
@@ -3175,8 +3172,8 @@ fi
|
|||||||
|
|
||||||
if test "$wxUSE_MAC" = 1 ; then
|
if test "$wxUSE_MAC" = 1 ; then
|
||||||
TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
|
TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
|
||||||
CFLAGS="${CFLAGS} -fpascal-strings"
|
CPPFLAGS="${CPPFLAGS} -fpascal-strings"
|
||||||
CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
|
CXXFLAGS="${CXXFLAGS} -cpp-precomp"
|
||||||
AC_CHECK_PROG(REZ, Rez, Rez, /Developer/Tools/Rez)
|
AC_CHECK_PROG(REZ, Rez, Rez, /Developer/Tools/Rez)
|
||||||
AC_CHECK_PROG(DEREZ, Derez, Derez, /Developer/Tools/Derez)
|
AC_CHECK_PROG(DEREZ, Derez, Derez, /Developer/Tools/Derez)
|
||||||
RESCOMP=${REZ}
|
RESCOMP=${REZ}
|
||||||
|
12
setup.h.in
12
setup.h.in
@@ -24,12 +24,6 @@
|
|||||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
#undef gid_t
|
#undef gid_t
|
||||||
|
|
||||||
/* Define if you don't have vprintf but do have _doprnt. */
|
|
||||||
#undef HAVE_DOPRNT
|
|
||||||
|
|
||||||
/* Define if you have the vprintf function. */
|
|
||||||
#undef HAVE_VPRINTF
|
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
#undef mode_t
|
#undef mode_t
|
||||||
|
|
||||||
@@ -52,12 +46,6 @@
|
|||||||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||||
#undef WORDS_BIGENDIAN
|
#undef WORDS_BIGENDIAN
|
||||||
|
|
||||||
/* Define if the X Window System is missing or not being used. */
|
|
||||||
#undef X_DISPLAY_MISSING
|
|
||||||
|
|
||||||
/* Define if lex declares yytext as a char * by default, not a char[]. */
|
|
||||||
#undef YYTEXT_POINTER
|
|
||||||
|
|
||||||
/* Define this if your version of GTK+ is greater than 1.2 */
|
/* Define this if your version of GTK+ is greater than 1.2 */
|
||||||
#undef __WXGTK12__
|
#undef __WXGTK12__
|
||||||
|
|
||||||
|
@@ -67,15 +67,10 @@ DLLTOOL = @DLLTOOL@
|
|||||||
|
|
||||||
########################### Flags #################################
|
########################### Flags #################################
|
||||||
|
|
||||||
#
|
CPPFLAGS = $(APPEXTRACPPFLAGS) @CPPFLAGS@ @TOOLKIT_DEF@ @WXDEBUG_DEFINE@
|
||||||
# CPPFLAGS (gnu standard) is not C++ flags, but flags for the "cpp"
|
CFLAGS = $(APPEXTRACFLAGS) $(CPPFLAGS) @CODE_GEN_FLAGS@ @CFLAGS@
|
||||||
# preprocessor. Unfortunately whoever wrote this now uses CPPFLAGS for
|
CXXFLAGS = $(APPEXTRACXXFLAGS) $(CPPFLAGS) \
|
||||||
# C++ like CFLAGS for C. :-(
|
@CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@ @CXXFLAGS@
|
||||||
# We *must* include CPPFLAGS in both of these, to make sure that all
|
|
||||||
# header files get found. (KB)
|
|
||||||
|
|
||||||
CFLAGS = $(APPEXTRACFLAGS) $(APPEXTRACPPFLAGS) @TOOLKIT_DEF@ @CODE_GEN_FLAGS@ @WXDEBUG_DEFINE@ @CFLAGS@ @CPPFLAGS@ @CODE_GEN_FLAGS@
|
|
||||||
CPPFLAGS = $(APPEXTRACXXFLAGS) $(APPEXTRACPPFLAGS) @TOOLKIT_DEF@ @CODE_GEN_FLAGS@ @WXDEBUG_DEFINE@ @CXXFLAGS@ @CPPFLAGS@ @CODE_GEN_FLAGS_CXX@
|
|
||||||
PICFLAGS = @PIC_FLAG@
|
PICFLAGS = @PIC_FLAG@
|
||||||
|
|
||||||
# taking into account how SHARED_LD is defined, appending LDFLAGS to it
|
# taking into account how SHARED_LD is defined, appending LDFLAGS to it
|
||||||
|
Reference in New Issue
Block a user