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:
parent
f1e710a4d8
commit
ca4e1f8a92
@ -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=
|
||||
.include <bsd.own.mk>
|
||||
@ -12,6 +12,10 @@ SRCS= dhclient.c clparse.c
|
||||
CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"' \
|
||||
-DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
|
||||
|
||||
.if ${HAVE_GCC} == 4
|
||||
CPPFLAGS+= -fno-strict-aliasing
|
||||
.endif
|
||||
|
||||
# common source
|
||||
#
|
||||
.PATH: ${RSRCDIR}/common
|
||||
|
Loading…
Reference in New Issue
Block a user