From: Pierre-Marc Fournier Date: Tue, 13 Apr 2010 17:45:30 +0000 (-0400) Subject: compile with -fno-strict-aliasing X-Git-Tag: v1.9.1~614 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=16c83055d749e9f246a934401e3862085aca1e65;p=lttng-ust.git compile with -fno-strict-aliasing --- diff --git a/Makefile.am b/Makefile.am index 05ea397e..f7952c64 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,4 +21,4 @@ libust.so: libust.ldscript.in # 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 $@ $< diff --git a/libust/Makefile.am b/libust/Makefile.am index b4d05980..529d4b0c 100644 --- a/libust/Makefile.am +++ b/libust/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libust.la @@ -28,4 +29,4 @@ libust_la_LIBADD = \ $(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 diff --git a/libustcomm/Makefile.am b/libustcomm/Makefile.am index baebd846..c53dd141 100644 --- a/libustcomm/Makefile.am +++ b/libustcomm/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustcomm.la libustcomm_la_SOURCES = \ @@ -7,4 +8,4 @@ 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 diff --git a/libustfork/Makefile.am b/libustfork/Makefile.am index 837f8dc3..a53ddda7 100644 --- a/libustfork/Makefile.am +++ b/libustfork/Makefile.am @@ -1,6 +1,7 @@ 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 diff --git a/libustinstr-malloc/Makefile.am b/libustinstr-malloc/Makefile.am index 0f9007aa..26c73e0a 100644 --- a/libustinstr-malloc/Makefile.am +++ b/libustinstr-malloc/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustinstr-malloc.la libustinstr_malloc_la_SOURCES = mallocwrap.c diff --git a/snprintf/Makefile.am b/snprintf/Makefile.am index 5ef7d826..f3b78bb3 100644 --- a/snprintf/Makefile.am +++ b/snprintf/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm +AM_CFLAGS = -fno-strict-aliasing lib_LTLIBRARIES = libustsnprintf.la libustsnprintf_la_SOURCES = \ @@ -15,4 +16,4 @@ 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 diff --git a/ustctl/Makefile.am b/ustctl/Makefile.am index 4b8100f7..94e8c00a 100644 --- a/ustctl/Makefile.am +++ b/ustctl/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/libustcomm \ -I$(top_srcdir)/libustcmd $(KCOMPAT_CFLAGS) +AM_CFLAGS = -fno-strict-aliasing bin_PROGRAMS = ustctl @@ -8,7 +9,7 @@ ustctl_SOURCES = \ $(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 \ diff --git a/ustd/Makefile.am b/ustd/Makefile.am index 96f167b0..09d09848 100644 --- a/ustd/Makefile.am +++ b/ustd/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/libust -I$(top_srcdir)/libustcomm \ -I$(top_srcdir)/include +AM_CFLAGS = -fno-strict-aliasing bin_PROGRAMS = ustd @@ -10,4 +11,4 @@ ustd_LDADD = \ $(top_builddir)/libustcomm/libustcomm.la ustd_LDFLAGS = -lpthread -ustd_CFLAGS = -DUST_COMPONENT=ustd +ustd_CFLAGS = -DUST_COMPONENT=ustd -fno-strict-aliasing