aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libkse/Makefile1
-rw-r--r--lib/libthr/Makefile1
-rw-r--r--usr.bin/netstat/Makefile1
-rw-r--r--usr.sbin/acpi/acpidb/Makefile1
-rw-r--r--usr.sbin/kldxref/Makefile1
-rw-r--r--usr.sbin/nscd/Makefile1
-rw-r--r--usr.sbin/rpc.yppasswdd/Makefile1
7 files changed, 7 insertions, 0 deletions
diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile
index d7c5acb1b5df..8018ce52c42e 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 a0f4069920b5..c3d687bab956 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 d8794d9d0ffa..c7815567a57c 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 00e781e6a323..b6580777a551 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 <bsd.prog.mk>
diff --git a/usr.sbin/kldxref/Makefile b/usr.sbin/kldxref/Makefile
index 33337fd8a180..2f1550583cf7 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 f743797701b8..69fd126ae6c7 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 1b76da46de89..bbd2658bafdd 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 \