# HG changeset patch # User grante # Date 1330979421 0 # Node ID 73ce0d6424ec90915637012cdeca293359a84ad7 # Parent 0603e0509bfb81cef729c4de23b36f4edc93b63f Add -fno-strict-aliasing to CFLAGS to fix warnings from newer gcc (4.6) about dereferencing type-punned pointers. [Hopfully a future update from upstream will obviate the need for this.] diff --git a/packages/net/bsd_tcpip/current/ChangeLog b/packages/net/bsd_tcpip/current/ChangeLog --- a/packages/net/bsd_tcpip/current/ChangeLog +++ b/packages/net/bsd_tcpip/current/ChangeLog @@ -1,3 +1,8 @@ +2012-02-29 Grant Edwards + + * cdl/freebsd_net.cdl: Add -fno-strict-aliasing compiler flag to fix + compiler warnings from newer versions (4.6) of gcc. [ bugzilla 1001501 ] + 2011-05-12 John Dallaway * include/sys/param.h: Fix cyg_arc4random() extern. Issue reported by diff --git a/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl b/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl --- a/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl +++ b/packages/net/bsd_tcpip/current/cdl/freebsd_net.cdl @@ -466,7 +466,7 @@ cdl_package CYGPKG_NET_FREEBSD_STACK { display "Additional compiler flags" flavor data no_define - default_value { "-D_KERNEL" } + default_value { "-D_KERNEL -fno-strict-aliasing" } description " This option modifies the set of compiler flags for building the networking package.