зеркало из https://github.com/github/ruby.git
[Bug #19778] Pass additional include options to INCFLAGS in common.mk
This commit is contained in:
Родитель
e9a36f8abe
Коммит
bcb3247072
|
@ -46,7 +46,7 @@ RUN_OPTS = --disable-gems
|
|||
# GITPULLOPTIONS = --no-tags
|
||||
|
||||
YARP_SRCDIR = $(srcdir)/yarp
|
||||
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(YARP_SRCDIR) -I$(UNICODE_HDR_DIR)
|
||||
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(YARP_SRCDIR) -I$(UNICODE_HDR_DIR) $(incflags)
|
||||
|
||||
GEM_HOME =
|
||||
GEM_PATH =
|
||||
|
|
|
@ -970,6 +970,7 @@ AS_IF([test "x$OPT_DIR" != x], [
|
|||
INCFLAGS="${INCFLAGS:+$INCFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' |
|
||||
sed '/^$/d;s|^|-I|;s|$|/include|' | tr '\012' ' ' | sed 's/ *$//'`
|
||||
])
|
||||
AC_SUBST(incflags, "$INCFLAGS")
|
||||
|
||||
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""
|
||||
test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\""
|
||||
|
|
|
@ -89,6 +89,7 @@ optflags = @optflags@
|
|||
debugflags = @debugflags@
|
||||
warnflags = @warnflags@ @strict_warnflags@
|
||||
cppflags = @cppflags@
|
||||
incflags = @incflags@
|
||||
RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty
|
||||
_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=)
|
||||
XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1)
|
||||
|
|
Загрузка…
Ссылка в новой задаче