# It is very important to compile the initializer with PIC otherwise we
# may get obscure errors when linking to shared libraries.
libust-initializer.o: libust-initializer.c
- $(CC) $(CFLAGS) -fPIC -c -I$(top_srcdir)/include -o $@ $<
+ $(CC) $(CFLAGS) -fno-strict-aliasing -fPIC -c -I$(top_srcdir)/include -o $@ $<
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libust.la
$(top_builddir)/snprintf/libustsnprintf.la \
$(top_builddir)/libustcomm/libustcomm.la
-libust_la_CFLAGS = -DUST_COMPONENT="libust"
+libust_la_CFLAGS = -DUST_COMPONENT="libust" -fno-strict-aliasing
AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libustcomm.la
libustcomm_la_SOURCES = \
multipoll.h \
multipoll.c
libustcomm_la_LDFLAGS = -no-undefined -version-info 0:0:0 -static
-libustcomm_la_CFLAGS = -DUST_COMPONENT="libustcomm" -fPIC
+libustcomm_la_CFLAGS = -DUST_COMPONENT="libustcomm" -fPIC -fno-strict-aliasing
AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libustfork.la
libustfork_la_SOURCES = ustfork.c
libustfork_la_LIBADD = -ldl
-libustfork_CFLAGS = -DUST_COMPONENT=libustfork
+libustfork_CFLAGS = -DUST_COMPONENT=libustfork -fno-strict-aliasing
AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libustinstr-malloc.la
libustinstr_malloc_la_SOURCES = mallocwrap.c
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm
+AM_CFLAGS = -fno-strict-aliasing
lib_LTLIBRARIES = libustsnprintf.la
libustsnprintf_la_SOURCES = \
wcio.h \
wsetup.c
libustsnprintf_la_LDFLAGS = -no-undefined -version-info 0:0:0 -static
-libustsnprintf_la_CFLAGS = -DUST_COMPONENT="ust_snprintf" -fPIC
+libustsnprintf_la_CFLAGS = -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm \
-I$(top_srcdir)/libustcmd $(KCOMPAT_CFLAGS)
+AM_CFLAGS = -fno-strict-aliasing
bin_PROGRAMS = ustctl
$(top_srcdir)/libustcmd/ustcmd.c \
$(top_srcdir)/libustcmd/ustcmd.h
-ustctl_CFLAGS = -DUST_COMPONENT=ustctl
+ustctl_CFLAGS = -DUST_COMPONENT=ustctl -fno-strict-aliasing
ustctl_LDADD = \
$(top_builddir)/snprintf/libustsnprintf.la \
AM_CPPFLAGS = -I$(top_srcdir)/libust -I$(top_srcdir)/libustcomm \
-I$(top_srcdir)/include
+AM_CFLAGS = -fno-strict-aliasing
bin_PROGRAMS = ustd
$(top_builddir)/libustcomm/libustcomm.la
ustd_LDFLAGS = -lpthread
-ustd_CFLAGS = -DUST_COMPONENT=ustd
+ustd_CFLAGS = -DUST_COMPONENT=ustd -fno-strict-aliasing