From 5582e69034ba50273e149d51bf06746392403b90 Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 20 Nov 2007 02:07:30 +0000 Subject: These are the things that the tinderbox has problems with because it doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again. --- lib/libkse/Makefile | 1 + lib/libthr/Makefile | 1 + usr.bin/netstat/Makefile | 1 + usr.sbin/acpi/acpidb/Makefile | 1 + usr.sbin/kldxref/Makefile | 1 + usr.sbin/nscd/Makefile | 1 + usr.sbin/rpc.yppasswdd/Makefile | 1 + 7 files changed, 7 insertions(+) diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile index d7c5acb..8018ce5 100644 --- a/lib/libkse/Makefile +++ b/lib/libkse/Makefile @@ -25,6 +25,7 @@ CFLAGS+=-I${.CURDIR}/sys CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} CFLAGS+=-fno-builtin +CFLAGS+=-fno-strict-aliasing # Uncomment this if you want libkse to contain debug information for # thread locking. diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile index a0f4069..c3d687b 100644 --- a/lib/libthr/Makefile +++ b/lib/libthr/Makefile @@ -27,6 +27,7 @@ CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH} CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline +CFLAGS+=-fno-strict-aliasing # CFLAGS+=-DSYSTEM_SCOPE_ONLY diff --git a/usr.bin/netstat/Makefile b/usr.bin/netstat/Makefile index d8794d9..c781556 100644 --- a/usr.bin/netstat/Makefile +++ b/usr.bin/netstat/Makefile @@ -8,6 +8,7 @@ SRCS= if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \ unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c WARNS?= 3 +CFLAGS+=-fno-strict-aliasing CFLAGS+=-DIPSEC CFLAGS+=-DSCTP diff --git a/usr.sbin/acpi/acpidb/Makefile b/usr.sbin/acpi/acpidb/Makefile index 00e781e..b658077 100644 --- a/usr.sbin/acpi/acpidb/Makefile +++ b/usr.sbin/acpi/acpidb/Makefile @@ -59,5 +59,6 @@ MAN= acpidb.8 WARNS?= 2 CFLAGS+= -DACPI_EXEC_APP +CFLAGS+=-fno-strict-aliasing .include diff --git a/usr.sbin/kldxref/Makefile b/usr.sbin/kldxref/Makefile index 33337fd..2f15505 100644 --- a/usr.sbin/kldxref/Makefile +++ b/usr.sbin/kldxref/Makefile @@ -5,6 +5,7 @@ MAN= kldxref.8 SRCS= kldxref.c ef.c ef_obj.c WARNS?= 2 +CFLAGS+=-fno-strict-aliasing .if exists(ef_${MACHINE_ARCH}.c) SRCS+= ef_${MACHINE_ARCH}.c diff --git a/usr.sbin/nscd/Makefile b/usr.sbin/nscd/Makefile index f743797..69fd126 100644 --- a/usr.sbin/nscd/Makefile +++ b/usr.sbin/nscd/Makefile @@ -4,6 +4,7 @@ PROG= nscd MAN= nscd.conf.5 nscd.8 WARNS?= 2 +CFLAGS+=-fno-strict-aliasing SRCS= agent.c nscd.c nscdcli.c cachelib.c cacheplcs.c debug.c log.c \ config.c query.c mp_ws_query.c mp_rs_query.c singletons.c protocol.c \ parser.c diff --git a/usr.sbin/rpc.yppasswdd/Makefile b/usr.sbin/rpc.yppasswdd/Makefile index 1b76da4..bbd2658 100644 --- a/usr.sbin/rpc.yppasswdd/Makefile +++ b/usr.sbin/rpc.yppasswdd/Makefile @@ -15,6 +15,7 @@ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \ yppasswd_private_xdr.c yppasswd_svc.c WARNS?= 4 +CFLAGS+= -fno-strict-aliasing CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw \ -I${.CURDIR}/../../usr.sbin/ypserv \ -I${.CURDIR}/../../libexec/ypxfr \ -- cgit v1.1