[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to define custom hardened gcc?

From: kiasoc5
Subject: How to define custom hardened gcc?
Date: Sat, 22 Jan 2022 01:36:22 +0100 (CET)

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
    (inherit gcc)
     (substitute-keyword-arguments (package-arguments gcc)
     ((#:configure-flags flags
       `(append (list "--enable-default-ssp" "--enable-default-pie")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]