Add -fno-strict-aliasing to CFLAGS to avoid gcc warning

"dereferencing type-punned pointer will break strict-aliasing rules"
which occurs when compiling crypto_openssl.c with -O[23s].
This should be gone once a new release of kame with a fix applied
is imported.
This commit is contained in:
junyoung 2004-08-05 17:13:54 +00:00
parent 14c8904f79
commit d4277bb7d5
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2004/04/12 04:01:27 itojun Exp $ # $NetBSD: Makefile,v 1.21 2004/08/05 17:13:54 junyoung Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -38,6 +38,7 @@ LDADD+= -lipsec -ly -ll -lcrypto
DPADD+= ${LIBIPSEC} ${LIBY} ${LIBL} ${LIBCRYPTO} DPADD+= ${LIBIPSEC} ${LIBY} ${LIBL} ${LIBCRYPTO}
#CFLAGS+=-g #CFLAGS+=-g
CFLAGS+=-fno-strict-aliasing
OPTFLAG+=-DHAVE_PFKEYV2 -DYIPS_DEBUG OPTFLAG+=-DHAVE_PFKEYV2 -DYIPS_DEBUG
CPPFLAGS+=-DINET6 -DHAVE_FUNCTION_MACRO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBL=1 -DHAVE_LIBY=1 -DENABLE_IPV6=1 -DADVAPI=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETNAMEINFO=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_VARARGS_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1 -DHAVE_STRDUP=1 -DHAVE_GETIFADDRS=1 -DHAVE_ARC4RANDOM=1 $(OPTFLAG) -DIPSEC -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