guix-devel
[Top][All Lists]
Advanced

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

[PATCH] gnu: glibc-hurd: Force mach/hurd/libpthread subdirs to build fir


From: manolis837
Subject: [PATCH] gnu: glibc-hurd: Force mach/hurd/libpthread subdirs to build first.
Date: Sun, 13 Nov 2016 15:19:46 +0200

From: Manolis Ragkousis <address@hidden>

* gnu/packages/base.scm (glibc/hurd): Avoid linking errors by forcing
mach/hurd/libpthread glibc subdirs to build before anything else.
---
 gnu/packages/base.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 1c01874..abefe4e 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -714,7 +714,17 @@ with the Linux kernel.")
              ;; Use the right 'pwd'.
              (substitute* "configure"
                (("/bin/pwd") "pwd")))
-          ,original-phases)))
+           (alist-replace
+            'build
+            (lambda _
+              ;; Force mach/hurd/libpthread subdirs to build first in order to 
avoid
+              ;; linking errors.
+              (zero?
+               (and (system* "make" "mach/subdir_lib")
+                    (system* "make" "hurd/subdir_lib")
+                    (system* "make" "libpthread/subdir_lib")
+                    (system* "make"))))
+            ,original-phases))))
         ((#:configure-flags original-configure-flags)
         `(append (list "--host=i586-pc-gnu"
 
-- 
2.10.2




reply via email to

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