[PATCH] Pass CXXFLAGS to binutils/gold

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Wed Oct 5 21:45:00 GMT 2011


Michael, Mike, All,

On Wednesday 05 October 2011 23:30:53 Michael Hope wrote:
> On Wed, Oct 5, 2011 at 3:14 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Tuesday 04 October 2011 21:21:21 Michael Hope wrote:
> >> It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC
> >> target rules already do the same.
> >
> > especially because there are flags valid for the C compiler which are not
> > valid for the C++ compiler ...
> 
> Yip.  There's a good amount of deliberate overlap between the gcc,
> g++, and gfortran flags.  In crosstool-NG it's currently only used for
> -pipe.

Yes, it feels icky... But those flags are usually very limited in their
use; currently they're used only for '-pipe'.

However, with Michael's other patch, it becomes possible for the user to
pass arbitrary flags. But the use case is limited, and focuses on generic
flags. Eg. disabling SSP or fortify, which is documented in the help entry.

In this case, it's pretty much harmless, I guess...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list