diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-08-15 16:36:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:46 +0200 |
commit | 4f55c361f4f844daa661d9907b4e1e6275468e58 (patch) | |
tree | 188e436bba7fbcb68fe2ca4f8996cf4eb6e0051c /gnu/packages | |
parent | 1fce094bfbc4a25d01a64fd88bbd1125656d8112 (diff) | |
download | guix-4f55c361f4f844daa661d9907b4e1e6275468e58.tar.gz guix-4f55c361f4f844daa661d9907b4e1e6275468e58.zip |
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
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/commencement.scm | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ exec " gcc "/bin/" program ;; 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 |