pkgsrc/x11/libXaw/hacks.mk
bjs 0daa3138ca Add hacks.mk file to build with -fno-strict-aliasing with gcc 3.0+.
There were a significant amount of warnings, and it's more important
for this library to be reliable than it is for it to be as fast
as possible.

Bump rev.
2008-01-29 03:57:36 +00:00

13 lines
258 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2008/01/29 03:57:36 bjs Exp $
.if !defined(LIBXAW_HACKS_MK)
LIBXAW_HACKS_MK= # defined
.include "../../mk/compiler.mk"
.if !empty(CC_VERSION:Mgcc-[34]*)
CFLAGS+= -fno-strict-aliasing
PKG_HACKS+= no-strict-aliasing
.endif
.endif