diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-09 22:29:46 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-09 22:32:15 +0200 |
commit | d0b62698c9bc55577ca7df9351c8f9afb2b52026 (patch) | |
tree | cb45a61c18ec5a5e0fd2f44a31da1d021f273779 /gnu/packages/gcc.scm | |
parent | 9063ef0f790ef3d3cd4f0594ec91b9326354ad3b (diff) | |
download | guix-d0b62698c9bc55577ca7df9351c8f9afb2b52026.tar.gz |
gnu: gcc: Build libbacktrace without -Werror.
* gnu/packages/gcc.scm (gcc-4.7)[arguments] <pre-configure>: Remove -Werror from libbacktrace/configure.
Diffstat (limited to 'gnu/packages/gcc.scm')
-rw-r--r-- | gnu/packages/gcc.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index e10d45d80e..48ef72933d 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -240,6 +240,14 @@ 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\";")) + (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 + ;; 2.21's stdlib-bsearch.h. Remove -Werror. + (substitute* "libbacktrace/configure" + (("WARN_FLAGS=(.*)-Werror" _ flags) + (string-append "WARN_FLAGS=" flags)))) + ;; Add a RUNPATH to libstdc++.so so that it finds libgcc_s. ;; See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32354> ;; and <http://bugs.gnu.org/20358>. |