[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 27/33: gnu: commencement: glibc-intermediate: Build fixes for the Hu
From: |
Ludovic Courtès |
Subject: |
Re: 27/33: gnu: commencement: glibc-intermediate: Build fixes for the Hurd. |
Date: |
Tue, 10 Mar 2020 10:10:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
address@hidden skribis:
> ;; Tell 'libpthread' where to find 'libihash' on Hurd
> systems.
> - ,@(if (hurd-triplet? (%current-system))
> - `((substitute* "libpthread/Makefile"
> - (("LDLIBS-pthread.so =.*")
> - (string-append "LDLIBS-pthread.so = "
> - (assoc-ref %build-inputs
> "kernel-headers")
> - "/lib/libihash.a\n"))))
> + ,@(if (hurd-system?)
> + `(map
> + (lambda (f)
> + (substitute* f
> + (("LDLIBS-pthread.so =.*")
> + (string-append "LDLIBS-pthread.so = "
> + (assoc-ref %build-inputs
> "kernel-headers")
> + "/lib/libihash.a\n")))
> + '("sysdeps/mach/Makefile"
> + "sysdeps/mach/hurd/Makefile:")))
‘substitute*’ accepts a list of files, so you can write it like this:
(substitute* '("sysdeps/mach/hurd/Makefile" "sysdeps/mach/Makefile")
…)
Ludo’.
- Re: 27/33: gnu: commencement: glibc-intermediate: Build fixes for the Hurd.,
Ludovic Courtès <=