зеркало из https://github.com/github/ruby.git
win32/Makefile.sub: LIBDIR_BASENAME
* mjit.c (init_header_filename): support LIBDIR_BASENAME. * win32/Makefile.sub (config.h): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8036af48a5
Коммит
81f02142b8
11
mjit.c
11
mjit.c
|
@ -1176,6 +1176,13 @@ init_header_filename(void)
|
|||
const size_t header_name_len = sizeof(header_name) - 1;
|
||||
char *p;
|
||||
#ifdef _WIN32
|
||||
static const char libdirname[] = "/"
|
||||
# ifdef LIBDIR_BASENAME
|
||||
LIBDIR_BASENAME
|
||||
# else
|
||||
"lib"
|
||||
# endif
|
||||
;
|
||||
static const char libpathflag[] =
|
||||
# ifdef _MSC_VER
|
||||
"-LIBPATH:"
|
||||
|
@ -1210,9 +1217,9 @@ init_header_filename(void)
|
|||
p = append_str2(p, basedir, baselen);
|
||||
*p = '\0';
|
||||
|
||||
libruby_installed = xmalloc(libpathflag_len + baselen + rb_strlen_lit("/lib") + 1);
|
||||
libruby_installed = xmalloc(libpathflag_len + baselen + sizeof(libdirname));
|
||||
p = append_str2(libruby_installed, libruby_build, p - libruby_build);
|
||||
p = append_lit(p, "/lib");
|
||||
p = append_str(p, libdirname);
|
||||
*p = '\0';
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -834,6 +834,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
|||
#define DEFAULT_KCODE KCODE_NONE
|
||||
#define LOAD_RELATIVE 1
|
||||
#define DLEXT ".so"
|
||||
!if "$(libdir_basename)" != "lib"
|
||||
#define LIBDIR_BASENAME "$(libdir_basename)"
|
||||
!endif
|
||||
!if "$(EXTSTATIC)" == "static"
|
||||
#define EXTSTATIC 1
|
||||
!endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче