guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: gcc: Properly set the dynamic linker file name on GNU/Hurd.


From: Ludovic Courtès
Subject: 03/03: gnu: gcc: Properly set the dynamic linker file name on GNU/Hurd.
Date: Sun, 22 Jan 2017 12:13:55 +0000 (UTC)

civodul pushed a commit to branch core-updates
in repository guix.

commit 33ae7d43854d8e36f29892015d4ee172c7f518f6
Author: Ludovic Courtès <address@hidden>
Date:   Sun Jan 22 13:11:45 2017 +0100

    gnu: gcc: Properly set the dynamic linker file name on GNU/Hurd.
    
    * gnu/packages/gcc.scm (gcc-4.7)[arguments]: In 'pre-configure' phase,
    match 'GNU_USER_DYNAMIC_LINKER' in addition to 'GLIBC_DYNAMIC_LINKER'.
    This fixes GNU/Hurd cross-compilation as reported at
    <https://lists.gnu.org/archive/html/guix-devel/2017-01/msg01731.html>.
---
 gnu/packages/gcc.scm |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 206c67e..0cdef6d 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -205,17 +205,18 @@ where the OS part is overloaded to denote a specific 
ABI---into GCC
                 (for-each
                  (lambda (x)
                    (substitute* (find-files "gcc/config"
-                                            "^linux(64|-elf|-eabi)?\\.h$")
-                     (("(#define GLIBC_DYNAMIC_LINKER.*)\\\\\n$" _ line)
+                                            
"^(linux|gnu|sysv4)(64|-elf|-eabi)?\\.h$")
+                     (("(#define (GLIBC|GNU_USER)_DYNAMIC_LINKER.*)\\\\\n$" _ 
line)
                       line)))
                  '(1 2 3))
 
                 ;; Fix the dynamic linker's file name.
                 (substitute* (find-files "gcc/config"
                                          
"^(linux|gnu|sysv4)(64|-elf|-eabi)?\\.h$")
-                  (("#define GLIBC_DYNAMIC_LINKER([^ ]*).*$" _ suffix)
-                   (format #f "#define GLIBC_DYNAMIC_LINKER~a \"~a\"~%"
-                           suffix
+                  (("#define (GLIBC|GNU_USER)_DYNAMIC_LINKER([^ ]*).*$"
+                    _ gnu-user suffix)
+                   (format #f "#define ~a_DYNAMIC_LINKER~a \"~a\"~%"
+                           gnu-user suffix
                            (string-append libc ,(glibc-dynamic-linker)))))
 
                 ;; Tell where to find libstdc++, libc, and `?crt*.o', except



reply via email to

[Prev in Thread] Current Thread [Next in Thread]