Module Name:    src
Committed By:   martin
Date:           Thu Dec 27 07:08:59 UTC 2012

Modified Files:
        src/lib/libc/net: Makefile.inc

Log Message:
Avoid gcc 4.5.3 compiler bug on ia64 by compiling hesiod.c with -O1 only.


To generate a diff of this commit:
cvs rdiff -u -r1.81 -r1.82 src/lib/libc/net/Makefile.inc

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/net/Makefile.inc
diff -u src/lib/libc/net/Makefile.inc:1.81 src/lib/libc/net/Makefile.inc:1.82
--- src/lib/libc/net/Makefile.inc:1.81	Fri Jan 20 14:08:05 2012
+++ src/lib/libc/net/Makefile.inc	Thu Dec 27 07:08:59 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.81 2012/01/20 14:08:05 joerg Exp $
+#	$NetBSD: Makefile.inc,v 1.82 2012/12/27 07:08:59 martin Exp $
 #	@(#)Makefile.inc	8.2 (Berkeley) 9/5/93
 
 # net sources
@@ -17,6 +17,9 @@ SRCS+=	base64.c ethers.c gethnamaddr.c g
 
 .if (${MKHESIOD} != "no")
 SRCS+=	hesiod.c
+.if ${HAVE_GCC:U} == "45" && ${MACHINE_CPU} == "ia64"
+COPTS.hesiod.c+=	${${ACTIVE_CC} == "gcc" :? -O1 :}
+.endif
 .endif
 
 SRCS+=	getaddrinfo.c getnameinfo.c

Reply via email to