Skip to content

Commit

Permalink
gcc: fix c++ headers when cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-canva committed Jun 28, 2023
1 parent 9e3415e commit 51ea2f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/compilers/gcc/common/configure-flags.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ let
# We pick "/" path to effectively avoid sysroot offset and make it work
# as a native case.
"--with-build-sysroot=/"
# Same with the stdlibc++ headers embedded in the gcc output
"--with-gxx-include-dir=${placeholder "out"}/include/c++/${version}/"
]

# Basic configuration
Expand Down

0 comments on commit 51ea2f3

Please sign in to comment.