From: Stephen Hemminger Date: Wed, 9 Mar 2011 18:39:17 +0000 (-0800) Subject: Add no-strict-aliasing to genl X-Git-Tag: v2.6.39~13^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46dc73a57d569bc036c36d922f2699e725b5c1aa;p=thirdparty%2Fiproute2.git Add no-strict-aliasing to genl The genl code uses constructs which violate the strict aliasing constraints of gcc 4.4. Disable the optimization to avoid warnings and potential breakage. --- diff --git a/genl/Makefile b/genl/Makefile index 44bb83cd0..03d1f26a1 100644 --- a/genl/Makefile +++ b/genl/Makefile @@ -3,6 +3,8 @@ GENLOBJ=genl.o include ../Config SHARED_LIBS ?= y +CFLAGS += -fno-strict-aliasing + GENLMODULES := GENLMODULES += ctrl.o