Browse Source

gnu: make-bootstrap: Have %gcc-static actually static when cross building.

* gnu/packages/make-bootstrap.scm (%gcc-static): Pass `-static' through
  `LDFLAGS' when cross-compiling.
gn-latest-20200428
Ludovic Courtès 8 years ago
parent
commit
11acdf1747
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      gnu/packages/make-bootstrap.scm

+ 3
- 1
gnu/packages/make-bootstrap.scm View File

@ -389,7 +389,9 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
(remove (cut string-match "--(.*plugin|enable-languages)" <>)
,flags)))
((#:make-flags flags)
`(cons "BOOT_LDFLAGS=-static" ,flags)))))
(if (%current-target-system)
`(cons "LDFLAGS=-static" ,flags)
`(cons "BOOT_LDFLAGS=-static" ,flags))))))
(inputs `(("gmp-source" ,(package-source gmp))
("mpfr-source" ,(package-source mpfr))
("mpc-source" ,(package-source mpc))


Loading…
Cancel
Save