[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72643] [PATCH core-updates 6/6] gnu: commencement: Build ‘perl-boot
From: |
Ludovic Courtès |
Subject: |
[bug#72643] [PATCH core-updates 6/6] gnu: commencement: Build ‘perl-boot0’ without stack protector on the Hurd. |
Date: |
Thu, 15 Aug 2024 18:58:34 +0200 |
* gnu/packages/commencement.scm (perl-boot0)[arguments]: Pass “-A
ccflags=-fno-stack-protector” on GNU/Hurd.
Change-Id: I04d4e276cdcc1bbf589273791a3f64e5a17c4152
---
gnu/packages/commencement.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 62bb2d6c96..0aec12c72b 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -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
--
2.45.2
- [bug#72643] [PATCH core-updates 0/6] Restore i586-gnu (GNU/Hurd) support, Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 6/6] gnu: commencement: Build ‘perl-boot0’ without stack protector on the Hurd.,
Ludovic Courtès <=
- [bug#72643] [PATCH core-updates 4/6] DRAFT gnu: glibc-bootstrap: Update i586-gnu variant., Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 1/6] gnu: make-bootstrap: Fix cross-compilation of ‘%glibc-stripped’., Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 3/6] gnu: make-bootstrap: Include libdl.a and libutil.a in ‘glibc-stripped’., Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 5/6] gnu: perl-boot0: Use gexps., Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 2/6] gnu: make-bootstrap: Adjust ‘%glibc-stripped’ for glibc@2.39 on the Hurd., Ludovic Courtès, 2024/08/15
- [bug#72643] [PATCH core-updates 0/6] Restore i586-gnu (GNU/Hurd) support, Janneke Nieuwenhuizen, 2024/08/16