зеркало из https://github.com/github/ruby.git
MJIT header for multiarch
* configure.ac: MJIT_HEADER_INSTALL_DIR to rubyarchhdrdir to support multiarch. * Makefile.in (MJIT_HEADER_INSTALL_DIR): configured by multiarch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
251f8be76b
Коммит
4b8719c1cd
|
@ -45,6 +45,7 @@ sitearch = @sitearch@
|
||||||
sitedir = @sitedir@
|
sitedir = @sitedir@
|
||||||
archlibdir = @archlibdir@
|
archlibdir = @archlibdir@
|
||||||
ruby_version = @ruby_version@
|
ruby_version = @ruby_version@
|
||||||
|
RUBY_VERSION_NAME = @RUBY_VERSION_NAME@
|
||||||
|
|
||||||
TESTUI = console
|
TESTUI = console
|
||||||
TESTS =
|
TESTS =
|
||||||
|
@ -73,6 +74,7 @@ CPPFLAGS = @CPPFLAGS@ $(INCFLAGS)
|
||||||
MJIT_HEADER_FLAGS = @MJIT_HEADER_FLAGS@
|
MJIT_HEADER_FLAGS = @MJIT_HEADER_FLAGS@
|
||||||
MJIT_HEADER_SUFFIX =
|
MJIT_HEADER_SUFFIX =
|
||||||
MJIT_HEADER_ARCH =
|
MJIT_HEADER_ARCH =
|
||||||
|
MJIT_HEADER_INSTALL_DIR = @MJIT_HEADER_INSTALL_DIR@
|
||||||
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
||||||
EXTLDFLAGS = @EXTLDFLAGS@
|
EXTLDFLAGS = @EXTLDFLAGS@
|
||||||
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
|
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
|
||||||
|
|
|
@ -64,7 +64,6 @@ MJIT_MIN_HEADER = $(MJIT_HEADER_BUILD_DIR)/rb_mjit_min_header-$(RUBY_PROGRAM_VER
|
||||||
MJIT_CPPFLAGS = -DMJIT_HEADER_INSTALL_DIR=\""$(MJIT_HEADER_INSTALL_DIR)"\" \
|
MJIT_CPPFLAGS = -DMJIT_HEADER_INSTALL_DIR=\""$(MJIT_HEADER_INSTALL_DIR)"\" \
|
||||||
-DLIBRUBYARG_SHARED=\""$(LIBRUBYARG_SHARED)"\"
|
-DLIBRUBYARG_SHARED=\""$(LIBRUBYARG_SHARED)"\"
|
||||||
MJIT_HEADER_BUILD_DIR = $(EXTOUT)/include/$(arch)
|
MJIT_HEADER_BUILD_DIR = $(EXTOUT)/include/$(arch)
|
||||||
MJIT_HEADER_INSTALL_DIR = include/$(RUBY_BASE_NAME)-$(ruby_version)/$(arch)
|
|
||||||
|
|
||||||
INITOBJS = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
|
INITOBJS = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
|
||||||
NORMALMAINOBJ = main.$(OBJEXT)
|
NORMALMAINOBJ = main.$(OBJEXT)
|
||||||
|
|
|
@ -2478,6 +2478,7 @@ LIBEXT=a
|
||||||
AC_SUBST(DLDFLAGS)dnl
|
AC_SUBST(DLDFLAGS)dnl
|
||||||
AC_SUBST(ARCH_FLAG)dnl
|
AC_SUBST(ARCH_FLAG)dnl
|
||||||
AC_SUBST(MJIT_HEADER_FLAGS)dnl
|
AC_SUBST(MJIT_HEADER_FLAGS)dnl
|
||||||
|
AC_SUBST(MJIT_HEADER_INSTALL_DIR)dnl
|
||||||
|
|
||||||
AC_SUBST(STATIC)dnl
|
AC_SUBST(STATIC)dnl
|
||||||
AC_SUBST(CCDLFLAGS)dnl
|
AC_SUBST(CCDLFLAGS)dnl
|
||||||
|
@ -2966,6 +2967,9 @@ AC_ARG_ENABLE(multiarch,
|
||||||
[multiarch=], [unset multiarch])
|
[multiarch=], [unset multiarch])
|
||||||
AS_IF([test ${multiarch+set}], [
|
AS_IF([test ${multiarch+set}], [
|
||||||
AC_DEFINE(ENABLE_MULTIARCH)
|
AC_DEFINE(ENABLE_MULTIARCH)
|
||||||
|
MJIT_HEADER_INSTALL_DIR=include/'${arch}/${RUBY_VERSION_NAME}'
|
||||||
|
], [
|
||||||
|
MJIT_HEADER_INSTALL_DIR=include/'${RUBY_VERSION_NAME}/${arch}'
|
||||||
])
|
])
|
||||||
|
|
||||||
archlibdir='${libdir}/${arch}'
|
archlibdir='${libdir}/${arch}'
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
% C = rbconfig::MAKEFILE_CONFIG.dup
|
% C = rbconfig::MAKEFILE_CONFIG.dup
|
||||||
% def C.[](name) str = super and (str unless str.empty?); end
|
% def C.[](name) str = super and (str unless str.empty?); end
|
||||||
#define RUBY_BASE_NAME "${RUBY_BASE_NAME}"
|
#define RUBY_BASE_NAME "${RUBY_BASE_NAME}"
|
||||||
#define RUBY_VERSION_NAME RUBY_BASE_NAME"-"RUBY_LIB_VERSION
|
#define RUBY_VERSION_NAME "${RUBY_VERSION_NAME}"
|
||||||
% if C["RUBY_LIB_VERSION_STYLE"]
|
% if C["RUBY_LIB_VERSION_STYLE"]
|
||||||
#define RUBY_LIB_VERSION_STYLE ${RUBY_LIB_VERSION_STYLE}
|
#define RUBY_LIB_VERSION_STYLE ${RUBY_LIB_VERSION_STYLE}
|
||||||
% elsif !C["RUBY_LIB_VERSION"]
|
% elsif !C["RUBY_LIB_VERSION"]
|
||||||
|
|
|
@ -289,6 +289,7 @@ CPPFLAGS = $(DEFS) $(ARCHDEFS) $(CPPFLAGS)
|
||||||
MJIT_HEADER_FLAGS = -P
|
MJIT_HEADER_FLAGS = -P
|
||||||
MJIT_HEADER_SUFFIX =
|
MJIT_HEADER_SUFFIX =
|
||||||
MJIT_HEADER_ARCH =
|
MJIT_HEADER_ARCH =
|
||||||
|
MJIT_HEADER_INSTALL_DIR = include/$(RUBY_VERSION_NAME)/$(arch)
|
||||||
|
|
||||||
DLDFLAGS = $(LDFLAGS) -dll
|
DLDFLAGS = $(LDFLAGS) -dll
|
||||||
SOLIBS =
|
SOLIBS =
|
||||||
|
|
Загрузка…
Ссылка в новой задаче