unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* gcc default args
@ 2016-07-18  7:14 Vincent Legoll
  2016-07-18 12:08 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Vincent Legoll @ 2016-07-18  7:14 UTC (permalink / raw)
  To: help-guix

Hello,

I searched for a way to set gcc's -march globally, for the whole distro,
is this possible with guix ?

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc default args
  2016-07-18  7:14 gcc default args Vincent Legoll
@ 2016-07-18 12:08 ` Ludovic Courtès
  2016-07-18 14:28   ` Vincent Legoll
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2016-07-18 12:08 UTC (permalink / raw)
  To: Vincent Legoll; +Cc: help-guix

Hi,

Vincent Legoll <vincent.legoll@gmail.com> skribis:

> I searched for a way to set gcc's -march globally, for the whole distro,
> is this possible with guix ?

It’s possible, but inconvenient: you’d have to modify (guix build
gnu-build-system), or to add a GCC wrapper that appends “-march=foo”.

However, because you’d be building things differently, you wouldn’t be
able to use substitutes provided by mirror.hydra.gnu.org.

Likewise, binaries built on your machine may be unusable on other
machines, if you use -march=native or similar.

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc default args
  2016-07-18 12:08 ` Ludovic Courtès
@ 2016-07-18 14:28   ` Vincent Legoll
  0 siblings, 0 replies; 3+ messages in thread
From: Vincent Legoll @ 2016-07-18 14:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

>> I searched for a way to set gcc's -march globally, for the whole distro,
>> is this possible with guix ?
>
> It’s possible, but inconvenient: you’d have to modify (guix build
> gnu-build-system), or to add a GCC wrapper that appends “-march=foo”.

OK thanks, I'll try it

> However, because you’d be building things differently, you wouldn’t be
> able to use substitutes provided by mirror.hydra.gnu.org.
>
> Likewise, binaries built on your machine may be unusable on other
> machines, if you use -march=native or similar.

Yes, I know the consequences, I'm not distributing the resulting system.

-- 
Vincent Legoll

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-18 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-18  7:14 gcc default args Vincent Legoll
2016-07-18 12:08 ` Ludovic Courtès
2016-07-18 14:28   ` Vincent Legoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).