From a2925d9cef8df512f9e46f4fdb7cf92082281c12 Mon Sep 17 00:00:00 2001 From: nakayama Date: Sun, 19 Jun 2011 11:31:55 +0000 Subject: [PATCH] __udivdi3 isn't included in sparc compat libc on sparc64, so use ARCHSUBDIR instead of MACHINE_ARCH for checking whether to include quad/Makefile.inc. This fixes undefined symbol __udivdi3 in /libexec/ld.elf_so-sparc on sparc64 which is the cause of failure of hello32 test in toolchain/cc/t_hello. --- lib/libc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 53b3dd8cf4e4..d7c7306eafc0 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.145 2011/05/27 17:06:55 drochner Exp $ +# $NetBSD: Makefile,v 1.146 2011/06/19 11:31:55 nakayama Exp $ # @(#)Makefile 8.2 (Berkeley) 2/3/94 # # All library objects contain sccsid strings by default; they may be @@ -75,7 +75,7 @@ COMPATDIR=${.CURDIR}/compat .include "${.CURDIR}/net/Makefile.inc" .include "${.CURDIR}/nameser/Makefile.inc" .include "${.CURDIR}/nls/Makefile.inc" -.if (${MACHINE_ARCH} != "alpha") && (${MACHINE_ARCH} != "sparc64") +.if (${MACHINE_ARCH} != "alpha") && (${ARCHSUBDIR} != "sparc64") .include "${.CURDIR}/quad/Makefile.inc" .endif .if (${USE_LIBTRE} == "yes")