Module Name:    src
Committed By:   tsutsui
Date:           Sun Dec 25 12:32:36 UTC 2011

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

Log Message:
Apply fix for previous changes per request from joerg@:
http://mail-index.NetBSD.org/source-changes-d/2011/12/25/msg004454.html

XXX1: More Makefiles should be fixed otherwise they will be
      copy-and-pasted blindly again and again.
XXX2: Probably we need more explicit and simple macro to check active CC.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 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.79 src/lib/libc/net/Makefile.inc:1.80
--- src/lib/libc/net/Makefile.inc:1.79	Sat Dec 24 04:59:00 2011
+++ src/lib/libc/net/Makefile.inc	Sun Dec 25 12:32:36 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.79 2011/12/24 04:59:00 tsutsui Exp $
+#	$NetBSD: Makefile.inc,v 1.80 2011/12/25 12:32:36 tsutsui Exp $
 #	@(#)Makefile.inc	8.2 (Berkeley) 9/5/93
 
 # net sources
@@ -41,9 +41,9 @@ nslexer.c: nslexer.l nsparser.h
 
 .include "${ARCHDIR}/net/Makefile.inc"
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} == "45" && ${MACHINE_CPU} == "arm"   
-COPTS.getaddrinfo.c+=	-fno-tree-ter
-COPTS.gethnamaddr.c+=	-fno-tree-ter
+.if ${HAVE_GCC:U} == "45" && ${MACHINE_CPU} == "arm"
+COPTS.getaddrinfo.c+=	${${ACTIVE_CC} == "gcc" :? -fno-tree-ter :}
+COPTS.gethnamaddr.c+=	${${ACTIVE_CC} == "gcc" :? -fno-tree-ter :}
 .endif
 
 MAN+=	byteorder.3 ethers.3 gethostbyname.3 getifaddrs.3 \

Reply via email to