mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
a102b63c28
commit
ca0af8a3a8
|
@ -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…
Reference in New Issue