Module Name:    src
Committed By:   nakayama
Date:           Sun Jun 19 11:31:55 UTC 2011

Modified Files:
        src/lib/libc: Makefile

Log Message:
__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.


To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/lib/libc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/Makefile
diff -u src/lib/libc/Makefile:1.145 src/lib/libc/Makefile:1.146
--- src/lib/libc/Makefile:1.145	Fri May 27 17:06:55 2011
+++ src/lib/libc/Makefile	Sun Jun 19 11:31:55 2011
@@ -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 @@
 .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")

Reply via email to