~ruther/guix-exprs

62400bf2b5b559873726740e8aec536a796da942 — Rutherther 7 months ago 2d734ec
fix: c++ include paths

The C include path has to be the latest! This is because
the cstdlib header uses #include_next <stdlib.h>, and
since the include of C headers comes first, stdlib.h is
not found!
1 files changed, 6 insertions(+), 3 deletions(-)

M ruther/packages/embedded.scm
M ruther/packages/embedded.scm => ruther/packages/embedded.scm +6 -3
@@ 90,9 90,12 @@
                       (files '("arm-none-eabi/include")))
                      (search-path-specification
                       (variable "CROSS_CPLUS_INCLUDE_PATH")
                       (files '("arm-none-eabi/include"
                                "arm-none-eabi/include/c++"
                                "arm-none-eabi/include/c++/arm-none-eabi")))
                       (files '("arm-none-eabi/include/c++"
                                "arm-none-eabi/include/c++/arm-none-eabi"
                                ; C has to be last since c++ headers use
                                ; #include_next <stdlib.h> inside of <cstdlib>
                                ; Heh! :)
                                "arm-none-eabi/include")))
                      (search-path-specification
                       (variable "CROSS_LIBRARY_PATH")
                       (files '("arm-none-eabi/lib")))))))))

Do not follow this link