mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Stop passing CC_LIBS in compile_c_to_o
To fix "gcc: -lgcc: linker input file unused because linking not done" in
20190826
T200009Z.log.html.gz
Still I'm intentionally leaving CC_DLDFLAGS_ARGS because making compiler
options different might result in compile/link failure. (Of course
CC_DLDFLAGS_ARGS usually should not have compiler options, but it might
include by bad configure setup)
The same problem may exist in MJIT_LIBS used inside CC_LIBS as well, but
I just ignored that case because it impacts only MinGW / cygwin, hoping
that their users do not perform a wrong configure.
This commit is contained in:
parent
d8fa88294f
commit
88a37dc620
Notes:
git
2019-08-31 04:40:14 +09:00
s/might include/might be included/
1 changed files with 1 additions and 1 deletions
|
@ -792,7 +792,7 @@ compile_c_to_o(const char *c_file, const char *o_file)
|
|||
"-c", NULL
|
||||
};
|
||||
|
||||
char **args = form_args(5, cc_common_args, CC_CODEFLAG_ARGS, files, CC_LIBS, CC_DLDFLAGS_ARGS);
|
||||
char **args = form_args(4, cc_common_args, CC_CODEFLAG_ARGS, files, CC_DLDFLAGS_ARGS);
|
||||
if (args == NULL)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue