[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73118] [PATCH v2 2/5] gnu: make-libstdc++-arm-none-eabi: output lib
From: |
Rutherther |
Subject: |
[bug#73118] [PATCH v2 2/5] gnu: make-libstdc++-arm-none-eabi: output libstdc++ to arm-none-eabi. |
Date: |
Fri, 13 Sep 2024 11:42:04 +0000 |
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
---
gnu/packages/embedded.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index a7ba9ebe98..2a482f7e52 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -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)
--
2.46.0
- [bug#73118] [PATCH 0/5] Fix arm-none-eabi toolchains and introduce a newer version 12.3.rel1, Rutherther, 2024/09/08
- [bug#73118] [PATCH 1/5] Fix native-search-paths of arm-none-eabi toolchains, Rutherther, 2024/09/08
- [bug#73118] [PATCH 2/5] Fix lib directory of arm-none-eabi libstdc++, Rutherther, 2024/09/08
- [bug#73118] [PATCH 3/5] Add libstdc++-nano for arm-none-eabi, Rutherther, 2024/09/08
- [bug#73118] [PATCH 4/5] Fix arm-none-eabi 7 newlib nano variant, Rutherther, 2024/09/08
- [bug#73118] [PATCH 5/5] Introduce arm-none-eabi 12.3.rel1 toolchain, Rutherther, 2024/09/08
- [bug#73118] [PATCH v2 0/5] Fix arm-none-eabi toolchains and introduce a newer version 12.3.rel1, Rutherther, 2024/09/13