[Bug #19778] Pass additional include options to INCFLAGS in common.mk
This commit is contained in:
parent
e9a36f8abe
commit
bcb3247072
@ -46,7 +46,7 @@ RUN_OPTS = --disable-gems
|
|||||||
# GITPULLOPTIONS = --no-tags
|
# GITPULLOPTIONS = --no-tags
|
||||||
|
|
||||||
YARP_SRCDIR = $(srcdir)/yarp
|
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_HOME =
|
||||||
GEM_PATH =
|
GEM_PATH =
|
||||||
|
@ -970,6 +970,7 @@ AS_IF([test "x$OPT_DIR" != x], [
|
|||||||
INCFLAGS="${INCFLAGS:+$INCFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' |
|
INCFLAGS="${INCFLAGS:+$INCFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' |
|
||||||
sed '/^$/d;s|^|-I|;s|$|/include|' | tr '\012' ' ' | sed 's/ *$//'`
|
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_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\""
|
test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\""
|
||||||
|
@ -89,6 +89,7 @@ optflags = @optflags@
|
|||||||
debugflags = @debugflags@
|
debugflags = @debugflags@
|
||||||
warnflags = @warnflags@ @strict_warnflags@
|
warnflags = @warnflags@ @strict_warnflags@
|
||||||
cppflags = @cppflags@
|
cppflags = @cppflags@
|
||||||
|
incflags = @incflags@
|
||||||
RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty
|
RUBY_DEVEL = @RUBY_DEVEL@ # "yes" or empty
|
||||||
_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=)
|
_RUBY_DEVEL_enabled = $(RUBY_DEVEL:no=)
|
||||||
XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1)
|
XCFLAGS = @XCFLAGS@ $(INCFLAGS) $(_RUBY_DEVEL_enabled:yes=-DRUBY_DEVEL=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user