gnu: commencement: Build ‘perl-boot0’ without stack protector on the Hurd.

* gnu/packages/commencement.scm (perl-boot0)[arguments]: Pass “-A
ccflags=-fno-stack-protector” on GNU/Hurd.

Change-Id: I04d4e276cdcc1bbf589273791a3f64e5a17c4152
This commit is contained in:
Ludovic Courtès 2024-08-15 16:36:57 +02:00
parent 1fce094bfb
commit 4f55c361f4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2484,7 +2484,14 @@ (define perl-boot0
;; support is missing.
((#:configure-flags configure-flags)
#~(delete "-Dusethreads"
#$configure-flags)))))))
;; On i586-gnu, linking fails with "undefined
;; reference to `__stack_chk_guard'" so avoid
;; '-fstack-protector'.
#$(if (target-hurd?)
#~(cons* "-A" "ccflags=-fno-stack-protector"
#$configure-flags)
configure-flags))))))))
(define m4-boot0
(package