Skip to content

Commit a55e30d

Browse files
only fetch libquadmath bits where they're used
avoids G_libquadmath_la_SOURCES ending up empty depend on who was the last mknative-gcc'er.
1 parent 6ccd067 commit a55e30d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tools/gcc/mknative-gcc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# $NetBSD: mknative-gcc,v 1.123 2026/01/17 23:43:46 mrg Exp $
2+
# $NetBSD: mknative-gcc,v 1.124 2026/01/18 05:00:35 mrg Exp $
33
#
44
# Shell script for generating all the constants needed for a native
55
# platform build of gcc.
@@ -177,6 +177,13 @@ get_libbacktrace () {
177177
##### lib/libquadmath #####
178178

179179
get_libquadmath () {
180+
# Don't fetch where not supported; it may leave empty files
181+
case $_MACHINE_ARCH in
182+
(x86_64|i386|ia64)
183+
break ;;
184+
(*)
185+
return ;;
186+
esac
180187
_subdir="$1"
181188

182189
mkdir -p $_OUTDIR/lib/$_subdir

0 commit comments

Comments
 (0)