1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* Makefile.in, configure.in (warnflags): defaulted to -Wall

-Wno-parentheses with gcc.  [ruby-dev:34810]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-05-31 06:58:11 +00:00
parent 1a192e2b29
commit ccaed588cc
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat May 31 15:58:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* Makefile.in, configure.in (warnflags): defaulted to -Wall
-Wno-parentheses with gcc. [ruby-dev:34810]
Sat May 31 15:17:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat May 31 15:17:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and

View file

@ -42,6 +42,7 @@ CFLAGS = @CFLAGS@ @ARCH_FLAG@
cflags = @cflags@ cflags = @cflags@
optflags = @optflags@ optflags = @optflags@
debugflags = @debugflags@ debugflags = @debugflags@
warnflags = @warnflags@
XCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) @XCFLAGS@ XCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) @XCFLAGS@
CPPFLAGS = @CPPFLAGS@ CPPFLAGS = @CPPFLAGS@
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@ LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@

View file

@ -176,14 +176,17 @@ AC_ARG_PROGRAM
dnl Checks for programs. dnl Checks for programs.
: ${CFLAGS=} ${CXXFLAGS=}
if test x"${build}" != x"${host}"; then if test x"${build}" != x"${host}"; then
AC_CHECK_TOOL(CC, gcc) AC_CHECK_TOOL(CC, gcc)
fi fi
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AC_PROG_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
test $ac_cv_prog_cc_g = yes && : ${debugflags=-g}
if test "$GCC" = yes; then if test "$GCC" = yes; then
linker_flag=-Wl, linker_flag=-Wl,
: ${optflags=-O2} ${warnflags="-Wall -Wno-parentheses"}
else else
linker_flag= linker_flag=
fi fi
@ -1730,9 +1733,10 @@ CPPFLAGS="$CPPFLAGS "'$(DEFS)'
test -z "$CFLAGS" || CFLAGS="$CFLAGS "; CFLAGS="$CFLAGS"'${cflags}' test -z "$CFLAGS" || CFLAGS="$CFLAGS "; CFLAGS="$CFLAGS"'${cflags}'
test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}' test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}'
AC_SUBST(cppflags, [])dnl AC_SUBST(cppflags, [])dnl
AC_SUBST(cflags, ['${optflags} ${debugflags}'])dnl AC_SUBST(cflags, ['${optflags} ${debugflags} ${warnflags}'])dnl
AC_SUBST(optflags)dnl AC_SUBST(optflags)dnl
AC_SUBST(debugflags)dnl AC_SUBST(debugflags)dnl
AC_SUBST(warnflags)dnl
AC_SUBST(XCFLAGS)dnl AC_SUBST(XCFLAGS)dnl
AC_SUBST(XLDFLAGS)dnl AC_SUBST(XLDFLAGS)dnl
AC_SUBST(LIBRUBY_LDSHARED) AC_SUBST(LIBRUBY_LDSHARED)