gnu: gcc: For riscv64-linux remove STARTFILE_PREFIX_SPEC.
* gnu/packages/gcc.scm (gcc-4.7)[arguments]: When building for riscv64-linux and the 'gcc/configure/riscv' directory exists adjust the STARTFILE_PREFIX_SPEC so it doesn't do anything.
This commit is contained in:
parent
53370c7b03
commit
32f52f82b3
@ -294,6 +294,16 @@ where the OS part is overloaded to denote a specific ABI---into GCC
|
|||||||
(substitute* "gcc/config/aarch64/t-aarch64-linux"
|
(substitute* "gcc/config/aarch64/t-aarch64-linux"
|
||||||
(("lib64") "lib")))
|
(("lib64") "lib")))
|
||||||
|
|
||||||
|
;; TODO: Make this unconditional in core-updates.
|
||||||
|
;; The STARTFILE_PREFIX_SPEC prevents gcc from finding the
|
||||||
|
;; gcc:lib output, which causes ld to not find -lgcc_s.
|
||||||
|
,@(if (target-riscv64?)
|
||||||
|
`((when (file-exists? "gcc/config/riscv")
|
||||||
|
(substitute* "gcc/config/riscv/linux.h"
|
||||||
|
(("define STARTFILE_PREFIX_SPEC")
|
||||||
|
"define __STARTFILE_PREFIX_SPEC"))))
|
||||||
|
'())
|
||||||
|
|
||||||
(when (file-exists? "libbacktrace")
|
(when (file-exists? "libbacktrace")
|
||||||
;; GCC 4.8+ comes with libbacktrace. By default it builds
|
;; GCC 4.8+ comes with libbacktrace. By default it builds
|
||||||
;; with -Werror, which fails with a -Wcast-qual error in glibc
|
;; with -Werror, which fails with a -Wcast-qual error in glibc
|
||||||
|
Loading…
Reference in New Issue
Block a user