mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
This commit is contained in:
parent
c9c2245c0a
commit
31bc55dc90
7 changed files with 44 additions and 6 deletions
|
@ -823,8 +823,15 @@ link_o_to_so(const char **o_files, const char *so_file)
|
|||
NULL
|
||||
};
|
||||
|
||||
char **args = form_args(7, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS,
|
||||
options, o_files, CC_LIBS, CC_DLDFLAGS_ARGS, CC_LINKER_ARGS);
|
||||
# if defined(__MACH__)
|
||||
extern VALUE rb_libruby_selfpath;
|
||||
const char *loader_args[] = {"-bundle_loader", StringValuePtr(rb_libruby_selfpath), NULL};
|
||||
# else
|
||||
const char *loader_args[] = {NULL};
|
||||
# endif
|
||||
|
||||
char **args = form_args(8, CC_LDSHARED_ARGS, CC_CODEFLAG_ARGS,
|
||||
options, o_files, loader_args, CC_LIBS, CC_DLDFLAGS_ARGS, CC_LINKER_ARGS);
|
||||
if (args == NULL)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue