Skip to content

Commit ff821dd

Browse files
committed
guix: Reinstate make-ssp-fixed-gcc
Unfortunately, gcc is still not smart enough to detect whether or not mingw-w64 provides ssp, so let's put it back just for mingw-w64.
1 parent 360a9e0 commit ff821dd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contrib/guix/manifest.scm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
(guix profiles)
2525
(guix utils))
2626

27+
(define (make-ssp-fixed-gcc xgcc)
28+
"Given a XGCC package, return a modified package that uses the SSP function
29+
from glibc instead of from libssp.so. Taken from:
30+
http://www.linuxfromscratch.org/hlfs/view/development/chapter05/gcc-pass1.html"
31+
(package
32+
(inherit xgcc)
33+
(arguments
34+
(substitute-keyword-arguments (package-arguments xgcc)
35+
((#:make-flags flags)
36+
`(cons "gcc_cv_libc_provides_ssp=yes" ,flags))))))
37+
2738
(define (make-gcc-rpath-link xgcc)
2839
"Given a XGCC package, return a modified package that replace each instance of
2940
-rpath in the default system spec that's inserted by Guix with -rpath-link"

0 commit comments

Comments
 (0)