From 4f55c361f4f844daa661d9907b4e1e6275468e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 15 Aug 2024 16:36:57 +0200 Subject: [PATCH] =?UTF-8?q?gnu:=20commencement:=20Build=20=E2=80=98perl-bo?= =?UTF-8?q?ot0=E2=80=99=20without=20stack=20protector=20on=20the=20Hurd.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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