Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net Apply fix for previous changes per request from...



details:   https://anonhg.NetBSD.org/src/rev/354026d03e78
branches:  trunk
changeset: 772232:354026d03e78
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Dec 25 12:32:36 2011 +0000

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

diffstat:

 lib/libc/net/Makefile.inc |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 52c604eb7671 -r 354026d03e78 lib/libc/net/Makefile.inc
--- a/lib/libc/net/Makefile.inc Sun Dec 25 11:51:15 2011 +0000
+++ b/lib/libc/net/Makefile.inc Sun Dec 25 12:32:36 2011 +0000
@@ -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 @@
 
 .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 \



Home | Main Index | Thread Index | Old Index