gnu: libstdc++-boot0: Improve gcc-wrapper workaround.
* gnu/packages/commencement.scm (libstdc++-boot0): Adjust the configure script instead of copying libstdc++.so from %BOOT0-INPUTS.
This commit is contained in:
parent
f4bf64138c
commit
a6facf9482
|
@ -1641,17 +1641,13 @@ exec " gcc "/bin/" program
|
||||||
(substitute-keyword-arguments (package-arguments lib)
|
(substitute-keyword-arguments (package-arguments lib)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
;; FIXME: why doesn't this package build libstdc++.so.6.0.20,
|
(add-after 'unpack 'workaround-wrapper-bug
|
||||||
;; when gcc-mesboot builds it fine?
|
;; XXX: The crude gcc-cross-wrapper causes "g++ -v" to
|
||||||
;; libtool: install: /gnu/store/7swwdnq02lqk4xkd8740fxdj1h4va38l-bootstrap-binaries-0/bin/install -c .libs/libstdc++.so.6.0.20 /gnu/store/np5pmdlwfin3vmqk88chh0fgs0ncki79-libstdc++-boot0-4.8.5/lib/libstdc++.so.6.0.20
|
;; fail, which in turn confuses the configure script.
|
||||||
;; /gnu/store/7swwdnq02lqk4xkd8740fxdj1h4va38l-bootstrap-binaries-0/bin/install: cannot stat '.libs/libstdc++.so.6.0.20': No such file or directory
|
(lambda _
|
||||||
(add-after 'build 'copy-libstdc++-
|
(substitute* "libstdc++-v3/configure"
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(("g\\+\\+ -v") "true"))
|
||||||
(let ((gcc (assoc-ref %build-inputs "gcc"))
|
#t))))))
|
||||||
(out (assoc-ref outputs "out")))
|
|
||||||
(copy-file (string-append gcc "/lib/libstdc++.so.6.0.20")
|
|
||||||
(string-append "src/.libs/libstdc++.so.6.0.20"))
|
|
||||||
#t)))))))
|
|
||||||
(_ (package-arguments lib)))))
|
(_ (package-arguments lib)))))
|
||||||
(inputs (%boot0-inputs))
|
(inputs (%boot0-inputs))
|
||||||
(native-inputs '()))))
|
(native-inputs '()))))
|
||||||
|
|
Loading…
Reference in New Issue