commit:     9b82332fb2a1068640c07c60f627fb6779f28a3b
Author:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 18:26:09 2024 +0000
Commit:     Luca Barbato <lu_zero <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 13:46:47 2024 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=9b82332f

crossdev: Force static-libs for -gnu targets

Without `static-libs`, the configure check for `-static` would fail and
it leads to a cascade failure in finding `-lpthread` in stage2 gcc.

Closes: https://github.com/gentoo/crossdev/pull/21
Signed-off-by: Luca Barbato <lu_zero <AT> gentoo.org>

 crossdev | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/crossdev b/crossdev
index 6de317a..020d17c 100755
--- a/crossdev
+++ b/crossdev
@@ -354,6 +354,9 @@ parse_target() {
                        ;;
                *-gnu*)
                        LPKG="glibc"
+                       # gcc would not find -lpthread without static libraries 
while building
+                       # its copy of libgomp.
+                       LUSE+=" static-libs"
                        ;;
                *-klibc)
                        LPKG="klibc"

Reply via email to