me
/
guix
Archived
1
0
Fork 0

gnu: gcc: Force Aarch64 to use /lib.

* gnu/packages/gcc.scm (gcc)[arguments]: On aarch64 replace force libdir
to be lib and not lib64.
master
Efraim Flashner 2017-02-09 20:45:09 +02:00
parent 74a2b2b439
commit b773e9b005
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 6 additions and 0 deletions

View File

@ -263,6 +263,12 @@ where the OS part is overloaded to denote a specific ABI---into GCC
(("static char const sed_cmd_z\\[\\] =.*;")
"static char const sed_cmd_z[] = \"sed\";"))
;; Aarch64 support didn't land in GCC until the 4.8 series.
(when (file-exists? "gcc/config/aarch64")
;; Force Aarch64 libdir to be /lib and not /lib64
(substitute* "gcc/config/aarch64/t-aarch64-linux"
(("lib64") "lib")))
(when (file-exists? "libbacktrace")
;; GCC 4.8+ comes with libbacktrace. By default it builds
;; with -Werror, which fails with a -Wcast-qual error in glibc