Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc __udivdi3 isn't included in sparc compat libc on sp...



details:   https://anonhg.NetBSD.org/src/rev/438fe5da34c3
branches:  trunk
changeset: 766250:438fe5da34c3
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Sun Jun 19 11:31:55 2011 +0000

description:
__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.

diffstat:

 lib/libc/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 06d5a6556337 -r 438fe5da34c3 lib/libc/Makefile
--- a/lib/libc/Makefile Sun Jun 19 11:22:42 2011 +0000
+++ b/lib/libc/Makefile Sun Jun 19 11:31:55 2011 +0000
@@ -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")



Home | Main Index | Thread Index | Old Index