gnu: make-libstdc++-arm-none-eabi: output libstdc++ to arm-none-eabi.

The libstdc++ made for arm-none-eabi puts the contents
into "lib" folder, but that's unexpected when the resulting
toolchain is a cross toolchain.
The folder should be "arm-none-eabi/lib", that's the path
added to CROSS_C_LIBRARY_PATH

* gnu/packages/embedded.scm (make-libstdc++-arm-none-eabi):
[arguments]<#:configure-flags>: Point --libdir to arm-none-eabi/lib.
[arguments]<#:strip-directories>: Set to arm-none-eabi/lib.

Change-Id: Ia8b867a1c6ebeedeae9564e0a6a1e0401b35bd5b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Rutherther 2024-09-13 11:42:04 +00:00 committed by Ludovic Courtès
parent ce8872fe9d
commit 3f09b05d8d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -493,9 +493,14 @@ (define make-libstdc++-arm-none-eabi
"--disable-tls"
"--disable-plugin"
"--with-newlib"
,(string-append "--libdir="
(assoc-ref %outputs "out")
"/arm-none-eabi/lib")
,(string-append "--with-gxx-include-dir="
(assoc-ref %outputs "out")
"/arm-none-eabi/include/c++")))))
"/arm-none-eabi/include/c++")))
((#:strip-directories _ #f)
''("arm-none-eabi/lib"))))
(native-inputs
`(("newlib" ,newlib)
("xgcc" ,xgcc)