diff --git a/external/bsd/fetch/lib/Makefile b/external/bsd/fetch/lib/Makefile index ff8efafeeee5..a0300423ab41 100644 --- a/external/bsd/fetch/lib/Makefile +++ b/external/bsd/fetch/lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2009/10/20 01:21:28 joerg Exp $ +# $NetBSD: Makefile,v 1.6 2011/06/21 02:32:55 mrg Exp $ LIB= fetch SRCS= fetch.c common.c ftp.c http.c file.c @@ -37,3 +37,8 @@ httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh ${LIBFETCHDIR}/http.errors > ${.TARGET} .include + +.if ${HAVE_GCC} == 45 +# XXX +COPTS.ftp.c+= -Wno-array-bounds +.endif diff --git a/lib/libc/Makefile b/lib/libc/Makefile index d7c7306eafc0..3239a197018b 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.146 2011/06/19 11:31:55 nakayama Exp $ +# $NetBSD: Makefile,v 1.147 2011/06/21 02:32:55 mrg Exp $ # @(#)Makefile 8.2 (Berkeley) 2/3/94 # # All library objects contain sccsid strings by default; they may be @@ -147,3 +147,10 @@ CSHLIBFLAGS+= -D_I18N_DYNAMIC # force the dynamic linker to initialize libc first SHLIB_SHFLAGS+= -Wl,-z,initfirst +# XXX +.if ${HAVE_GCC} >= 45 +COPTS.res_comp.c+= -Wno-cast-qual +COPTS.vfwprintf.c+= -Wno-cast-qual +COPTS.vfprintf.c+= -Wno-cast-qual +COPTS.vswprintf.c+= -Wno-cast-qual +.endif diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile index cd88a787b401..54ec24d0b75f 100644 --- a/lib/libedit/Makefile +++ b/lib/libedit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2010/02/03 15:34:43 roy Exp $ +# $NetBSD: Makefile,v 1.42 2011/06/21 02:32:55 mrg Exp $ # @(#)Makefile 8.1 (Berkeley) 6/4/93 USE_SHLIBDIR= yes @@ -113,10 +113,17 @@ historyn.c: makelist Makefile mv ${.TARGET}.tmp ${.TARGET} tc1.o: ${LIBEDITDIR}/TEST/tc1.c - + tc1: libedit.a tc1.o ${_MKTARGET_LINK} ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermlib .include .include + +# XXX +.if ${HAVE_GCC} >= 45 +COPTS.editline.c+= -Wno-cast-qual +COPTS.tokenizer.c+= -Wno-cast-qual +COPTS.tokenizern.c+= -Wno-cast-qual +.endif diff --git a/lib/libisns/Makefile b/lib/libisns/Makefile index ca551dda0a12..1ea1bf7877d5 100644 --- a/lib/libisns/Makefile +++ b/lib/libisns/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2011/01/16 01:22:50 agc Exp $ +# $NetBSD: Makefile,v 1.2 2011/06/21 02:32:55 mrg Exp $ .include @@ -14,3 +14,7 @@ INCSDIR=/usr/include WARNS= 4 .include + +.if ${HAVE_GCC} >= 45 +COPTS.isns_pdu.c+= -fno-strict-aliasing +.endif diff --git a/lib/libpam/libpam/Makefile b/lib/libpam/libpam/Makefile index b5acdb4aa4c2..909c4526eb69 100644 --- a/lib/libpam/libpam/Makefile +++ b/lib/libpam/libpam/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2010/12/10 20:06:17 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2011/06/21 02:32:55 mrg Exp $ #- # Copyright (c) 1998 Juniper Networks, Inc. # All rights reserved. @@ -191,3 +191,8 @@ openpam_static_modules.o: openpam_static.o ${STATIC_MODULE_LIBS} .PATH.h: ${DIST}/include .PATH.c: ${DIST}/lib .PATH.3: ${DIST}/doc/man + +# XXX +.if ${HAVE_GCC} >= 45 +COPTS.openpam_dispatch.c+= -Wno-cast-qual +.endif