If we need -fno-strict-aliasing (see hack "gcc4 pointer sign and strict

aliasing problems", usr.sbin/dhcp/Makefile.inc rev 1.20), we need it
on the crunched binaries too.
This commit is contained in:
martin 2006-11-23 13:22:18 +00:00
parent f1e710a4d8
commit ca4e1f8a92
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2003/08/02 05:16:58 lukem Exp $ # $NetBSD: Makefile,v 1.15 2006/11/23 13:22:18 martin Exp $
NOMAN= NOMAN=
.include <bsd.own.mk> .include <bsd.own.mk>
@ -12,6 +12,10 @@ SRCS= dhclient.c clparse.c
CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"' \ CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"' \
-DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes -DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
.if ${HAVE_GCC} == 4
CPPFLAGS+= -fno-strict-aliasing
.endif
# common source # common source
# #
.PATH: ${RSRCDIR}/common .PATH: ${RSRCDIR}/common