unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to define custom hardened gcc?
@ 2022-01-22  0:36 kiasoc5--- via
  0 siblings, 0 replies; only message in thread
From: kiasoc5--- via @ 2022-01-22  0:36 UTC (permalink / raw)
  To: help-guix

Dear Guixers,

I want to build gcc with --enable-default-ssp and --enable-default-pie, and have all packages built with gcc to be built by my hardened gcc, since Guix does not have a hardened toolchain yet.

How might I define a custom gcc that I can recompile all my packages with? I have this in mind but am not sure if it works.

(define-public gcc
  (package
    (inherit gcc)
    (arguments
     (substitute-keyword-arguments (package-arguments gcc)
     ((#:configure-flags flags
       `(append (list "--enable-default-ssp" "--enable-default-pie")
            ,flags)))))))

Thanks,
kiasoc5


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-22 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22  0:36 How to define custom hardened gcc? kiasoc5--- via

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).