Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1393829

Re: [PATCH v7 1/6] Shared library support

From Emese Revfy <re.emese@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v7 1/6] Shared library support
Date 2016-05-03 23:30 +0200
Message-ID <ruQ3f-7p9-5@gated-at.bofh.it> (permalink)
References <rqO02-6t9-3@gated-at.bofh.it> <rqO02-6t9-25@gated-at.bofh.it> <ruehk-5Uk-11@gated-at.bofh.it> <ruq8P-7OL-19@gated-at.bofh.it> <ruxWG-7p8-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 3 May 2016 11:00:56 +0900
Masahiro Yamada <yamada.masahiro@socionext.com> 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v7 1/6] Shared library support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-05-02 07:10 +0200
  Re: [PATCH v7 1/6] Shared library support Emese Revfy <re.emese@gmail.com> - 2016-05-02 19:50 +0200
    Re: [PATCH v7 1/6] Shared library support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-05-03 04:10 +0200
      Re: [PATCH v7 1/6] Shared library support Emese Revfy <re.emese@gmail.com> - 2016-05-03 23:30 +0200
        Re: [PATCH v7 1/6] Shared library support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-05-04 06:10 +0200
          Re: [PATCH v7 1/6] Shared library support Emese Revfy <re.emese@gmail.com> - 2016-05-05 20:40 +0200
    Re: [PATCH v7 1/6] Shared library support Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-05-03 04:10 +0200
  Re: [PATCH v7 1/6] Shared library support Emese Revfy <re.emese@gmail.com> - 2016-05-03 23:20 +0200
    Re: [PATCH v7 1/6] Shared library support Emese Revfy <re.emese@gmail.com> - 2016-05-05 20:40 +0200

csiph-web