From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com ([74.125.82.45]:38403 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756435AbcECVWT (ORCPT ); Tue, 3 May 2016 17:22:19 -0400 Date: Tue, 3 May 2016 23:29:32 +0200 From: Emese Revfy Subject: Re: [PATCH v7 1/6] Shared library support Message-Id: <20160503232932.706dd3bb081df5d04a390de9@gmail.com> In-Reply-To: References: <20160422201957.97ce16f0e67377d0ce613d19@gmail.com> <20160422202138.d50937e812b30aaba4f38a92@gmail.com> <20160502195617.9b2b7e07ced214a8f2136364@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada Cc: Linux Kbuild mailing list , PaX Team , Brad Spengler , kernel-hardening@lists.openwall.com, Michal Marek , Kees Cook , Rasmus Villemoes , Fengguang Wu , Dmitry Vyukov , Linux Kernel Mailing List , David Brown On Tue, 3 May 2016 11:00:56 +0900 Masahiro Yamada wrote: Hi, > # Compile .c file, create position independent .o file > # host-cxxshobjs -> .o > quiet_cmd_host-cxxshobjs = HOSTCXX -fPIC $@ > cmd_host-cxxshobjs = $(HOSTCXX) $(hostcxx_flags) -fPIC -c -o $@ $< > $(host-cxxshobjs): $(obj)/%.o: $(src)/%.c FORCE > $(call if_changed_dep,host-cxxshobjs) > > > > > We generally use HOSTCC to compile *.c files, > and HOSTCXX to compile *.cc files. > > > But, here, you mention to use HOSTCXX to compile .c files > such as cyc_complexity_plugin.c, sancov_plugin.c, etc. > > This is not straight-forward. It is worthwhile to comment the reason. I wrote a comment about it here: https://github.com/ephox-gcc-plugins/gcc-plugins_linux-next/commit/74f6343a7f13c071e00c417332051e25f15009ea -- Emese