mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: guile-static: Switch to gexps.
* gnu/packages/make-bootstrap.scm (make-guile-static): Switch to gexps.
This commit is contained in:
parent
83125dbc94
commit
ca7b1e2fd7
1 changed files with 29 additions and 29 deletions
|
@ -613,44 +613,44 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
|
||||||
(replace "libgc" libgc/static-libs)))
|
(replace "libgc" libgc/static-libs)))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments guile)
|
(substitute-keyword-arguments (package-arguments guile)
|
||||||
((#:configure-flags flags '())
|
((#:configure-flags flags #~'())
|
||||||
;; When `configure' checks for ltdl availability, it
|
;; When `configure' checks for ltdl availability, it
|
||||||
;; doesn't try to link using libtool, and thus fails
|
;; doesn't try to link using libtool, and thus fails
|
||||||
;; because of a missing -ldl. Work around that.
|
;; because of a missing -ldl. Work around that.
|
||||||
`(list "LDFLAGS=-ldl" "--enable-mini-gmp"
|
#~(list "LDFLAGS=-ldl" "--enable-mini-gmp"
|
||||||
|
|
||||||
;; Guile does an LTO build by default, but in 3.0.9 it
|
;; Guile does an LTO build by default, but in 3.0.9 it
|
||||||
;; wrongfully picks 'ar' instead of 'gcc-ar', so work around
|
;; wrongfully picks 'ar' instead of 'gcc-ar', so work around
|
||||||
;; it (see <https://issues.guix.gnu.org/61086>).
|
;; it (see <https://issues.guix.gnu.org/61086>).
|
||||||
,@(if (version-prefix? "3.0" (package-version guile))
|
#$@(if (version-prefix? "3.0" (package-version guile))
|
||||||
'("AR=gcc-ar" "RANLIB=gcc-ranlib")
|
#~("AR=gcc-ar" "RANLIB=gcc-ranlib")
|
||||||
'())
|
#~())
|
||||||
|
|
||||||
,@(if (hurd-target?)
|
#$@(if (hurd-target?)
|
||||||
'("--disable-jit")
|
#~("--disable-jit")
|
||||||
'())))
|
#~())))
|
||||||
((#:phases phases '%standard-phases)
|
((#:phases phases '%standard-phases)
|
||||||
`(modify-phases ,phases
|
#~(modify-phases #$phases
|
||||||
|
|
||||||
;; Do not record the absolute file name of 'sh' in
|
;; Do not record the absolute file name of 'sh' in
|
||||||
;; (ice-9 popen). This makes 'open-pipe' unusable in
|
;; (ice-9 popen). This makes 'open-pipe' unusable in
|
||||||
;; a build chroot ('open-pipe*' is fine) but avoids
|
;; a build chroot ('open-pipe*' is fine) but avoids
|
||||||
;; keeping a reference to Bash.
|
;; keeping a reference to Bash.
|
||||||
(delete 'pre-configure)
|
(delete 'pre-configure)
|
||||||
|
|
||||||
(add-before 'configure 'static-guile
|
(add-before 'configure 'static-guile
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "libguile/Makefile.in"
|
(substitute* "libguile/Makefile.in"
|
||||||
;; Create a statically-linked `guile'
|
;; Create a statically-linked `guile'
|
||||||
;; executable.
|
;; executable.
|
||||||
(("^guile_LDFLAGS =")
|
(("^guile_LDFLAGS =")
|
||||||
"guile_LDFLAGS = -all-static")
|
"guile_LDFLAGS = -all-static")
|
||||||
|
|
||||||
;; Add `-ldl' *after* libguile-2.0.la.
|
;; Add `-ldl' *after* libguile-2.0.la.
|
||||||
(("^guile_LDADD =(.*)$" _ ldadd)
|
(("^guile_LDADD =(.*)$" _ ldadd)
|
||||||
(string-append "guile_LDADD = "
|
(string-append "guile_LDADD = "
|
||||||
(string-trim-right ldadd)
|
(string-trim-right ldadd)
|
||||||
" -ldl\n")))))))
|
" -ldl\n")))))))
|
||||||
((#:tests? _ #f)
|
((#:tests? _ #f)
|
||||||
;; There are uses of `dynamic-link' in
|
;; There are uses of `dynamic-link' in
|
||||||
;; {foreign,coverage}.test that don't fly here.
|
;; {foreign,coverage}.test that don't fly here.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue