https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108865

--- Comment #13 from Costas Argyris <costas.argyris at gmail dot com> ---
With the changes in the attached patch, the utf8 object file gets linked into
gcc.exe but not cc1.exe - How can I achieve this?    Basically this object file
has to be linked pretty much in every executable as far as I can tell - we want
all of them to use the same encoding (although only those that take
user-provided paths are really necessary).

gcc/config.host says:

#  host_extra_objs      List of extra host-dependent objects that should
#                       be linked into the compiler proper.
#
#  host_extra_gcc_objs  List of extra host-dependent objects that should
#                       be linked into the gcc driver.

As seen in the patch, I added the new .o file in both of these variables.   
The driver certainly took it, but cc1 did not.    From that description I take
it that host_extra_objs should have done it, no?

I looked into the libcc1 folder but there is no config.host file there, or
anything that looks like it enables host-specific configuration.

Any thoughts on how I can extend the scope of where the new object file gets
linked in, to cover at least cc1 and possibly more?

Reply via email to