mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: cross-base: Fix C++ cross-compilation problems with GCC 7.
* gnu/packages/cross-base.scm (cross-gcc-arguments)[#:configure-flags]: Add "--with-sysroot=/".
This commit is contained in:
parent
3f151d90a3
commit
871dbd6c6e
1 changed files with 9 additions and 1 deletions
|
@ -121,7 +121,15 @@ base compiler and using LIBC (which may be either a libc package or #f.)"
|
||||||
,@(if libc
|
,@(if libc
|
||||||
`( ;; Disable libcilkrts because it is not
|
`( ;; Disable libcilkrts because it is not
|
||||||
;; ported to GNU/Hurd.
|
;; ported to GNU/Hurd.
|
||||||
"--disable-libcilkrts")
|
"--disable-libcilkrts"
|
||||||
|
;; When building a cross compiler, --with-sysroot is
|
||||||
|
;; implicitly set to "$gcc_tooldir/sys-root". This does
|
||||||
|
;; not work for us, because --with-native-system-header-dir
|
||||||
|
;; is searched for relative to this location. Thus, we set
|
||||||
|
;; it to "/" so GCC is able to find the target libc headers.
|
||||||
|
;; This is safe because in practice GCC uses CROSS_CPATH
|
||||||
|
;; & co to separate target and host libraries.
|
||||||
|
"--with-sysroot=/")
|
||||||
`( ;; Disable features not needed at this stage.
|
`( ;; Disable features not needed at this stage.
|
||||||
"--disable-shared" "--enable-static"
|
"--disable-shared" "--enable-static"
|
||||||
"--enable-languages=c,c++"
|
"--enable-languages=c,c++"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue