[前][次][番号順一覧][スレッド一覧]

ruby-changes:57341

From: Takashi <ko1@a...>
Date: Wed, 28 Aug 2019 00:56:35 +0900 (JST)
Subject: [ruby-changes:57341] Takashi Kokubun: 88a37dc620 (master): Stop passing CC_LIBS in compile_c_to_o

https://git.ruby-lang.org/ruby.git/commit/?id=88a37dc620

From 88a37dc62099b49e71a05342460da4061d5f23dd Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 28 Aug 2019 00:45:21 +0900
Subject: Stop passing CC_LIBS in compile_c_to_o

To fix "gcc: -lgcc: linker input file unused because linking not done" in
https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd65/ruby-master/log/20190826T200009Z.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.

diff --git a/mjit_worker.c b/mjit_worker.c
index aeb9446..499f8cf 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -792,7 +792,7 @@ compile_c_to_o(const char *c_file, const char *o_file) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L792
         "-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;
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]