aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-17 04:32:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-17 04:32:51 +0000
commit7a2466096025df5b6d38dd629116f8e856fd1e7d (patch)
tree907a9e52e1f37e983cb101517a577c331aed65d3
parent7c51c8fd17ce5c602f8d08adefa6977ade9219f1 (diff)
downloadruby-7a2466096025df5b6d38dd629116f8e856fd1e7d.tar.gz
Makefile.in, configure.in: cppflags
* Makefile.in, configure.in (cppflags): allow setting cppflags from the confiugre command line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--Makefile.in1
-rw-r--r--configure.in2
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 98749dec61..d3313bea2e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -62,6 +62,7 @@ cflags = @cflags@
optflags = @optflags@
debugflags = @debugflags@
warnflags = @warnflags@ @strict_warnflags@
+cppflags = @cppflags@
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir)
XCFLAGS = @XCFLAGS@
CPPFLAGS = @CPPFLAGS@ $(INCFLAGS)
diff --git a/configure.in b/configure.in
index c54b4a347c..513e3cc704 100644
--- a/configure.in
+++ b/configure.in
@@ -3555,7 +3555,7 @@ if test "${ARCH_FLAG}"; then
LDFLAGS=`echo "$LDFLAGS" | sed "s| *$archflagpat"'||'`
fi
warnflags="$rb_cv_warnflags"
-AC_SUBST(cppflags, [])dnl
+AC_SUBST(cppflags)dnl
AC_SUBST(cflags, ["$orig_cflags "'${optflags} ${debugflags} ${warnflags}'])dnl
AC_SUBST(cxxflags, ["$orig_cxxflags "'${optflags} ${debugflags} ${warnflags}'])dnl
AC_SUBST(optflags)dnl