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.
jolly/7bit_ussd
Harald Welte 10 years ago
parent a102b63c28
commit ca0af8a3a8
  1. 2
      libosmogb.pc.in
  2. 2
      src/gb/Makefile.am

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

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

Loading…
Cancel
Save