mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Pass cflags given to configure to mjit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f572aeb71f
commit
9067330c6d
2 changed files with 3 additions and 1 deletions
|
@ -81,6 +81,7 @@ MJIT_HEADER_SUFFIX =
|
|||
MJIT_HEADER_ARCH =
|
||||
MJIT_HEADER_INSTALL_DIR = @MJIT_HEADER_INSTALL_DIR@
|
||||
MJIT_CC = @MJIT_CC@
|
||||
MJIT_CFLAGS = @MJIT_CFLAGS@
|
||||
MJIT_OPTFLAGS = @MJIT_OPTFLAGS@
|
||||
MJIT_DEBUGFLAGS = @MJIT_DEBUGFLAGS@
|
||||
MJIT_LDSHARED = @MJIT_LDSHARED@
|
||||
|
@ -607,7 +608,7 @@ mjit_config.h:
|
|||
quote MJIT_MIN_HEADER_NAME "/$(MJIT_HEADER_INSTALL_DIR)/$(MJIT_MIN_HEADER_NAME)"; \
|
||||
sep=,; \
|
||||
quote "MJIT_CC_COMMON " $(MJIT_CC); \
|
||||
quote "MJIT_CFLAGS $${need_mjit_archflag:+ MJIT_ARCHFLAG}" -w; \
|
||||
quote "MJIT_CFLAGS $${need_mjit_archflag:+ MJIT_ARCHFLAG}" $(MJIT_CFLAGS); \
|
||||
quote "MJIT_OPTFLAGS " $(MJIT_OPTFLAGS); \
|
||||
quote "MJIT_DEBUGFLAGS " $(MJIT_DEBUGFLAGS); \
|
||||
quote "MJIT_LDSHARED " $(MJIT_LDSHARED); \
|
||||
|
|
|
@ -2525,6 +2525,7 @@ AC_SUBST(ARCH_FLAG)dnl
|
|||
AC_SUBST(MJIT_HEADER_FLAGS)dnl
|
||||
AC_SUBST(MJIT_HEADER_INSTALL_DIR)dnl
|
||||
AC_SUBST(MJIT_CC, [${MJIT_CC-'$(CC)'}])dnl
|
||||
AC_SUBST(MJIT_CFLAGS, [${MJIT_CFLAGS-"-w ${orig_cflags}"}])dnl
|
||||
AC_SUBST(MJIT_OPTFLAGS, [${MJIT_OPTFLAGS-'$(optflags)'}])dnl
|
||||
AC_SUBST(MJIT_DEBUGFLAGS, [${MJIT_DEBUGFLAGS-'$(debugflags)'}])dnl
|
||||
AC_SUBST(MJIT_LDSHARED)dnl
|
||||
|
|
Loading…
Reference in a new issue