aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2024-06-13 20:26:09 +0200
committerLuca Barbato <lu_zero@gentoo.org>2024-06-16 15:46:47 +0200
commit9b82332fb2a1068640c07c60f627fb6779f28a3b (patch)
tree2b1771bc5616d408568543f431600e12fb5e62b6
parentReorder gnu<-glibc wording, under "LIBC" for "--help", to follow with usage o... (diff)
downloadcrossdev-9b82332fb2a1068640c07c60f627fb6779f28a3b.tar.gz
crossdev-9b82332fb2a1068640c07c60f627fb6779f28a3b.tar.bz2
crossdev-9b82332fb2a1068640c07c60f627fb6779f28a3b.zip
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@gentoo.org>
-rwxr-xr-xcrossdev3
1 files changed, 3 insertions, 0 deletions
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"