This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Use $(COMPILER) to build objects


On Thu, May 21, 2009 at 8:40 AM, Ian Lance Taylor <iant@google.com> wrote:
> "Joseph S. Myers" <joseph@codesourcery.com> writes:
>
>> On Wed, 20 May 2009, Ian Lance Taylor wrote:
>>
>>> This is a preliminary step toward supporting a configure option to build
>>> gcc using either a C compiler or a C++ compiler. ?I think it would lead
>>> to long term confusion to use $(CC) in a Makefile to represent a C++
>>> compiler. ?This patch instead arranges to compile all code using
>>> $(COMPILER). ?CFLAGS changes to COMPILER_FLAGS and ALL_CFLAGS changes to
>>> ALL_COMPILERFLAGS. ?The COMPILER make variable is currently always set
>>> to $(CC); my intent is that in the future, a configure option will
>>> permit it to be set to either $(CC) or $(CXX).
>>>
>>> This is a mechanical patch. ?I'm sure there will be some details to
>>> clean up when we are ready to optionally set COMPILER to $(CXX).
>>
>> In particular, I believe the command for compiling should be separated
>>>From the command used for linking, so that --with-host-libstdcxx will
>> cause linking with the C compiler. ?(There is no -static-libstdc++ option
>> so you can't readily make the C++ compiler link with static libstdc++ when
>> desired.)
>
> That makes sense but I think I would prefer to make that change
> separately if the maintainers agree.
>

FWIW,

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31400
http://gcc.gnu.org/ml/gcc/2005-12/msg00783.html

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]