From ca0af8a3a862d5189915c02c2bc85461a3b33415 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 7 Sep 2012 12:01:28 +0200 Subject: libosmogb: build without strict aliasing rules This allows us to reliably do the trick with casting structures like libgb_msgb_cb to the msgb->cb[] array. Shamelessly stolen from the Linux kernel. --- src/gb/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gb') diff --git a/src/gb/Makefile.am b/src/gb/Makefile.am index 9d1b7862..71d47364 100644 --- a/src/gb/Makefile.am +++ b/src/gb/Makefile.am @@ -3,7 +3,7 @@ LIBVERSION=2:0:0 INCLUDES = $(all_includes) -I$(top_srcdir)/include -AM_CFLAGS = -Wall ${GCC_FVISIBILITY_HIDDEN} +AM_CFLAGS = -Wall ${GCC_FVISIBILITY_HIDDEN} -fno-strict-aliasing # FIXME: this should eventually go into a milenage/Makefile.am noinst_HEADERS = common_vty.h -- cgit v1.2.3