* mjit.c (CC_DLDFLAGS_ARGS): default libraries are necessary on
  Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-20 05:32:06 +00:00
Родитель eb81638530
Коммит 04178d396b
1 изменённых файлов: 11 добавлений и 2 удалений

13
mjit.c
Просмотреть файл

@ -560,7 +560,7 @@ static const char *const CC_OPTIMIZE_ARGS[] = {MJIT_OPTFLAGS NULL};
#if defined __GNUC__ && !defined __clang__ #if defined __GNUC__ && !defined __clang__
#define GCC_PIC_FLAGS "-Wfatal-errors", "-fPIC", "-shared", "-w", \ #define GCC_PIC_FLAGS "-Wfatal-errors", "-fPIC", "-shared", "-w", \
"-pipe", "-nostartfiles", "-nodefaultlibs", "-nostdlib", "-pipe",
#else #else
#define GCC_PIC_FLAGS /* empty */ #define GCC_PIC_FLAGS /* empty */
#endif #endif
@ -571,7 +571,16 @@ static const char *const CC_COMMON_ARGS[] = {
}; };
static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED GCC_PIC_FLAGS NULL}; static const char *const CC_LDSHARED_ARGS[] = {MJIT_LDSHARED GCC_PIC_FLAGS NULL};
static const char *const CC_DLDFLAGS_ARGS[] = {MJIT_DLDFLAGS NULL}; static const char *const CC_DLDFLAGS_ARGS[] = {
MJIT_DLDFLAGS
#if defined __GNUC__ && !defined __clang__
"-nostartfiles",
# ifndef _WIN32
"-nodefaultlibs", "-nostdlib",
# endif
#endif
NULL
};
#define CC_CODEFLAG_ARGS (mjit_opts.debug ? CC_DEBUG_ARGS : CC_OPTIMIZE_ARGS) #define CC_CODEFLAG_ARGS (mjit_opts.debug ? CC_DEBUG_ARGS : CC_OPTIMIZE_ARGS)
/* Status of the precompiled header creation. The status is /* Status of the precompiled header creation. The status is