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.
This commit is contained in:
Harald Welte 2012-09-07 12:01:28 +02:00
parent a102b63c28
commit ca0af8a3a8
2 changed files with 2 additions and 2 deletions

View File

@ -7,5 +7,5 @@ Name: Osmocom GPRS Gb Library
Description: Osmocom GPRS Gb Interface (NS/BSSGP) Library
Version: @VERSION@
Libs: -L${libdir} -losmogb -losmovty
Cflags: -I${includedir}/
Cflags: -I${includedir}/ -fno-strict-aliasing

View File

@ -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